更换终端应用程序
设置中搜索:
Terminal › External Exec
第一次使用VS Code时你应该知道的一切配置 - 知乎
设置
分类
工作区设置会覆盖用户设置
用户设置:应用于该用户打开的所有项目
- Windows %APPDATA%\Code\User\settings.json
- Linux $HOME/.config/Code/User/settings.json
- Mac
工作区设置:应用于某个特定项目
${WorkspaceDir}/.vscode/settings.json
在打开设置后,可直接在搜索框中搜索
显示空格和Tab
搜索renderControlCharacters,勾选可显示tab
搜索renderWhitespace,选择boundary,显示空格(字符间空格除外)
快捷键
https://www.jianshu.com/p/9f50dfc985e2
重新加载窗口/重启
Windows: Ctrl + R
Mac: Control + Option + R
在命令面板下输入reload window或rw,查找Developer: Reload Window
插件
Better Comments
https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments
"better-comments.highlightPlainText": true,"better-comments.multilineComments": true,"better-comments.tags": [{"tag": "tag", # 目标"color": "#FF2D00", # 字体颜色"strikethrough": false, # 中划线/删除线"underline": false, # 下划线"backgroundColor": "transparent", # 背景色 transparent透明"bold": false, # 粗体"italic": false # 斜体},{"tag": "!","color": "#FF2D00","strikethrough": false,"underline": false,"backgroundColor": "transparent","bold": false,"italic": false},{"tag": "?","color": "#3498DB","strikethrough": false,"underline": false,"backgroundColor": "transparent","bold": false,"italic": false},{"tag": "//","color": "#474747","strikethrough": true,"underline": false,"backgroundColor": "transparent","bold": false,"italic": false},{"tag": "todo","color": "#FF8C00","strikethrough": false,"underline": false,"backgroundColor": "transparent","bold": false,"italic": false},{"tag": "*","color": "#98C379","strikethrough": false,"underline": false,"backgroundColor": "transparent","bold": false,"italic": false}]
TODO Highlight
https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight
"todohighlight.exclude": ["**/node_modules/**","**/bower_components/**","**/dist/**","**/build/**","**/.vscode/**","**/.github/**","**/_output/**","**/*.min.*","**/*.map","**/.next/**"],"todohighlight.include": ["**/*.h","**/*.c","**/*.cc","**/*.cpp"],"todohighlight.keywords": [{"text": "NOTE:","desc": "注意","color": "red","border": "1px solid red","borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change"backgroundColor": "gba(0,0,0,.2)"},{"text": "TASK:","color": "red","border": "1px solid red","borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change"backgroundColor": "rgba(0,0,0,.2)",},{"text": "DOUT:","color": "red","border": "1px solid red","borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change"backgroundColor": "rgba(0,0,0,.2)",},{"text": "TODO:","color": "red","border": "1px solid red","borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change"backgroundColor": "rgba(0,0,0,.2)",//other styling properties goes here ...}],"todohighlight.isCaseSensitive": false
markdown-formatter
https://github.com/sumnow/markdown-formatter
setting.json配置
// 按照js格式化 // “markdownFormatter.codeAreaToBlock”: “js”, // 不格式化 “markdownFormatter.codeAreaToBlock”: “”, // 自动格式化标点 “markdownFormatter.fullWidthTurnHalfWidth”: “auto”,
// 中文标点格式化为英文
// “markdownFormatter.fullWidthTurnHalfWidth”: “,:;!“”‘’()?。”,
“markdownFormatter.formatOpt”: {
“indent_size”: 2
},
“[markdown]”: {
// 自动保存
“editor.formatOnSave”: true,
// 显示空格
“editor.renderWhitespace”: “all”,
// 快速补全
“editor.quickSuggestions”: {
"other": true,"comments": true,"strings": true},
// snippet 提示优先
“editor.snippetSuggestions”: “top”,
“editor.tabCompletion”: “on”,
// 使用enter 接受提示
“editor.acceptSuggestionOnEnter”: “on”,
// 默认格式化工具为本工具
“editor.defaultFormatter”: “mervin.markdown-formatter”
Doxygen
Doxygen是一个程序的文档产生工具,可以将程序中的注释转换成说明文档或者说是API参考手册,从而减少程序员整理文档的时间。当然这里程序中的注释需要遵循一定的规则书写,才能让Doxygen识别和转化。
目前Doxygen可处理的程序语言包含C/C++、Java、Objective-C、IDL等,可产生出来的文档格式有HTML、XML、LaTeX、RTF等,此外还可衍生出不少其它格式,如HTML可以打包成CHM格式,而LaTeX可以通过一些工具产生出PS或是PDF文档等。
