插件
- Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code:简体中文汉化包
- Dracula Theme Official:主题
- Palenight Theme 主题
- Material Icon Theme:图标主题
- Path Intellisense:路径自动补全
- Image preview:预览插入的图片(如在 markdown 或 html 中引入的图片)
- Hex Editor:以十六进制形式打开文件
- CodeSnap:在右键菜单中添加
CodeSnap选项,点击后选中代码即可实现代码截图
- Prettier - Code formatter:保存时自动格式化代码
- Doxygen Documentation Generator:自动生成函数注释文档
- Remote - SSH:连接远程服务器或虚拟机
设置项
- 打开设置的几种方式
- 在
文件-首选项-设置可以打开设置
- 点击左下角齿轮图标,然后点设置
- 快捷键:
Ctrl+,打开设置
Ctrl+Shift+P,然后搜索Open User Settings
打开设置页面后,点击右上角的打开设置(json)来打开settings.json,在这里配置和在图形化界面配置是等效的
字体
先到 JetBrains 官网 下载JetBrains Mono字体,并安装
1 2 3 4
| { "editor.fontSize": 20, "editor.fontFamily": "'JetBrains Mono', 'Fangsong'" }
|
Maple Mono 也很不错
1 2 3 4
| { "editor.fontFamily": "'Maple Mono Normal', 'Fangsong'", "editor.fontLigatures": "'calt', 'ss01', 'ss02', 'ss03', 'ss04', 'cv01', 'cv02', 'cv03', 'cv04', 'cv07', 'cv10'" }
|
文件
1 2 3 4 5 6
| { "files.autoGuessEncoding": true, "files.autoSave": "afterDelay", "files.autoSaveWhenNoErrors": true, "files.autoSaveWorkspaceFilesOnly": true }
|
光标
1 2 3 4
| { "editor.cursorBlinking": "smooth", "editor.cursorSmoothCaretAnimation": "on" }
|
编辑器
1 2 3 4 5 6 7 8 9
| { "editor.formatOnSave": true, "editor.formatOnPaste": true, "editor.formatOnSaveMode": "file", "editor.mouseWheelZoom": true, "editor.acceptSuggestionOnEnter": "smart", "editor.suggestSelection": "recentlyUsed", "editor.wordWrap": "on" }
|
外观
1 2 3 4 5
| { "workbench.colorTheme": "Palenight Theme", "workbench.iconTheme": "material-icon-theme", "workbench.list.smoothScrolling": true }
|
终端
1 2 3 4 5 6 7 8
| { "terminal.integrated.smoothScrolling": true, "terminal.integrated.copyOnSelection": true, "terminal.integrated.cursorBlinking": true, "terminal.integrated.cursorStyle": "line", "terminal.integrated.defaultProfile.windows": "Command Prompt", "terminal.integrated.fontFamily": "Maple Mono Normal" }
|
其他
1 2 3 4 5
| { "debug.showBreakpointsInOverviewRuler": true, "explorer.compactFolders": false, "scm.compactFolders": false }
|