环境
Windows 10
视觉体育场代码1.40.2
内容
有没有一种方法可以为内部开发和家庭开发同步VScode?
我暂时不知道该怎么做,所以我公开了自己的环境,并使其自己成为相同的状态
设置
文件→首选项→设置→单击右上方
的打开设置(JSON)
settings.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | { "editor.fontSize": 11, "editor.renderWhitespace": "boundary", "php.validate.executablePath": "C:\\php-7.3.11\\php.exe", "php.validate.run": "onType", "workbench.iconTheme": "material-icon-theme", "window.zoomLevel": 0, "diffEditor.ignoreTrimWhitespace": false, "editor.suggestSelection": "first", "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", "workbench.startupEditor": "newUntitledFile", "terminal.integrated.fontFamily": "monospace", "editor.cursorBlinking": "smooth", "editor.fontFamily": "'Fira Code','Meiryo UI'", "editor.fontLigatures": true, "terminal.integrated.rendererType": "dom", "files.eol": "\n", "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, "php.suggest.basic": false } |
↑解释.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | "editor.fontSize": 11, "editor.renderWhitespace": "boundary", "php.validate.executablePath": "C:\\php-7.3.11\\php.exe", "php.validate.run": "onType", "workbench.iconTheme": "material-icon-theme", "window.zoomLevel": 0, "diffEditor.ignoreTrimWhitespace": false, "editor.suggestSelection": "first", "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", "workbench.startupEditor": "newUntitledFile", "terminal.integrated.fontFamily": "monospace", "editor.cursorBlinking": "smooth", // プログラミング用フォント「Fira Code」を設定 "editor.fontFamily": "'Fira Code','Meiryo UI'", // 合字(リガチャ)を有効化 "editor.fontLigatures": true, // レンダタイプをDOMに変更(環境によっては早くなる) "terminal.integrated.rendererType": "dom", // ファイルのデフォルト改行コードをlfに指定 "files.eol": "\n", // 不要スペースの削除 "files.trimTrailingWhitespace": true, // 保存時にファイル最終行に空白行を付加 "files.insertFinalNewline": true, // VSCodeデフォルトのサジェストを無効化(説明が衝突するため) "php.suggest.basic": false |
扩展程序
支架对着色器2
https://github.com/CoenraadS/Bracket-Pair-Colorizer-2
颜色代码(),[]和{}使直观易懂
如果包含此内容,则可以看到与括号有关的语法错误。
支架对着色器操作改进版
代码eol
https://github.com/sohamkamani/code-eol
如果换行代码为lf,则将显示为"↓",如果为crlf,则将其显示为"?"
源的换行代码的统一是方式
HTMLHint
https://github.com/Microsoft/vscode-html提示
静态解析HTML,并告诉您在哪里修复
凹痕彩虹
https://github.com/oderwat/vscode-indent-rainbow
模板等是深层嵌套的,因此除非它们是彩色的,否则很难理解。
压痕现在将以浅彩虹色着色,并且将可见
材质图标主题
https://github.com/PKief/vscode-material-icon-theme
比默认图标更具特色的主题
由于该目录还具有按名称的图标,因此即使在充满文件夹
的环境中也很容易区分
PHP DocBlocker
https://github.com/neild3r/vscode-php-docblocker
它通过输入" / **"来辅助添加注释的说明。
类型提示和返回值规范也会自动写入
PHP Intelephense
https://github.com/bmewburn/vscode-intelephense
尾随空间
仅行尾,空格和具有不同缩进的空格以红色显示并变得明显