更换终端应用程序
设置中搜索:
Terminal › External Exec
第一次使用VS Code时你应该知道的一切配置 - 知乎

设置

文件:setting.json

分类

工作区设置会覆盖用户设置
用户设置:应用于该用户打开的所有项目

  • 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 windowrw,查找Developer: Reload Window
image.png

插件

Better Comments

https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments

  1. "better-comments.highlightPlainText": true,
  2. "better-comments.multilineComments": true,
  3. "better-comments.tags": [
  4. {
  5. "tag": "tag", # 目标
  6. "color": "#FF2D00", # 字体颜色
  7. "strikethrough": false, # 中划线/删除线
  8. "underline": false, # 下划线
  9. "backgroundColor": "transparent", # 背景色 transparent透明
  10. "bold": false, # 粗体
  11. "italic": false # 斜体
  12. },
  13. {
  14. "tag": "!",
  15. "color": "#FF2D00",
  16. "strikethrough": false,
  17. "underline": false,
  18. "backgroundColor": "transparent",
  19. "bold": false,
  20. "italic": false
  21. },
  22. {
  23. "tag": "?",
  24. "color": "#3498DB",
  25. "strikethrough": false,
  26. "underline": false,
  27. "backgroundColor": "transparent",
  28. "bold": false,
  29. "italic": false
  30. },
  31. {
  32. "tag": "//",
  33. "color": "#474747",
  34. "strikethrough": true,
  35. "underline": false,
  36. "backgroundColor": "transparent",
  37. "bold": false,
  38. "italic": false
  39. },
  40. {
  41. "tag": "todo",
  42. "color": "#FF8C00",
  43. "strikethrough": false,
  44. "underline": false,
  45. "backgroundColor": "transparent",
  46. "bold": false,
  47. "italic": false
  48. },
  49. {
  50. "tag": "*",
  51. "color": "#98C379",
  52. "strikethrough": false,
  53. "underline": false,
  54. "backgroundColor": "transparent",
  55. "bold": false,
  56. "italic": false
  57. }
  58. ]

TODO Highlight

https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight

  1. "todohighlight.exclude": [
  2. "**/node_modules/**",
  3. "**/bower_components/**",
  4. "**/dist/**",
  5. "**/build/**",
  6. "**/.vscode/**",
  7. "**/.github/**",
  8. "**/_output/**",
  9. "**/*.min.*",
  10. "**/*.map",
  11. "**/.next/**"
  12. ],
  13. "todohighlight.include": [
  14. "**/*.h",
  15. "**/*.c",
  16. "**/*.cc",
  17. "**/*.cpp"
  18. ],
  19. "todohighlight.keywords": [
  20. {
  21. "text": "NOTE:",
  22. "desc": "注意",
  23. "color": "red",
  24. "border": "1px solid red",
  25. "borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change
  26. "backgroundColor": "gba(0,0,0,.2)"
  27. },
  28. {
  29. "text": "TASK:",
  30. "color": "red",
  31. "border": "1px solid red",
  32. "borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change
  33. "backgroundColor": "rgba(0,0,0,.2)",
  34. },
  35. {
  36. "text": "DOUT:",
  37. "color": "red",
  38. "border": "1px solid red",
  39. "borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change
  40. "backgroundColor": "rgba(0,0,0,.2)",
  41. },
  42. {
  43. "text": "TODO:",
  44. "color": "red",
  45. "border": "1px solid red",
  46. "borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change
  47. "backgroundColor": "rgba(0,0,0,.2)",
  48. //other styling properties goes here ...
  49. }
  50. ],
  51. "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”: {

  1. "other": true,
  2. "comments": true,
  3. "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文档等。

Todo Tree