vscode的插件推荐和配置说明
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
3.6 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. # README
  2. - [README](#readme)
  3. - [CMake Language Support](#cmake-language-support)
  4. - [Sublime Text Keymap and Settings Importer](#sublime-text-keymap-and-settings-importer)
  5. - [Better C++ Syntax](#better-c-syntax)
  6. - [CMake](#cmake)
  7. - [CMake Language Support(josetr.cmake-language-support-vscode)](#cmake-language-supportjosetrcmake-language-support-vscode)
  8. - [CMake Tools(ms-vscode.cmake-tools)](#cmake-toolsms-vscodecmake-tools)
  9. - [Doxygen Documentation Generator](#doxygen-documentation-generator)
  10. - [Markdown All in One(yzhang.markdown-all-in-one)](#markdown-all-in-oneyzhangmarkdown-all-in-one)
  11. - [Bracket Select](#bracket-select)
  12. - [C/C++(ms-vscode.cpptools)](#ccms-vscodecpptools)
  13. - [C/C++ Snippets : programmershri.cppsnippets](#cc-snippets--programmershricppsnippets)
  14. - [highlight-words](#highlight-words)
  15. - [Project Manager](#project-manager)
  16. - [Comment Box](#comment-box)
  17. - [change-case](#change-case)
  18. - [Header source switch](#header-source-switch)
  19. ## CMake Language Support
  20. ```
  21. cmake语言高亮
  22. cmake格式化
  23. ```
  24. ## Sublime Text Keymap and Settings Importer
  25. ## Better C++ Syntax
  26. ## CMake
  27. ## CMake Language Support(josetr.cmake-language-support-vscode)
  28. ## CMake Tools(ms-vscode.cmake-tools)
  29. ## Doxygen Documentation Generator
  30. ## Markdown All in One(yzhang.markdown-all-in-one)
  31. ## Bracket Select
  32. ```
  33. 快速选择括号内内容的功能
  34. CMDS:
  35. bracket-select.select BraSel:Select Alt+A
  36. bracket-select.undo-select BraSel:UndoSelect Alt+Z
  37. bracket-select.select-include BraSel:SelectInclude Ctrl+Alt+A
  38. ```
  39. ## C/C++(ms-vscode.cpptools)
  40. ```
  41. ```
  42. ## C/C++ Snippets : programmershri.cppsnippets
  43. ```
  44. c++代码片段
  45. ```
  46. ## highlight-words
  47. ```
  48. 高亮选中的单词
  49. CMD:
  50. highlightwords.addHighlight Highlight Toggle Current
  51. highlightwords.removeHighlight Highlight Remove
  52. highlightwords.removeAllHighlights Highlight Remove All
  53. highlightwords.addRegExpHighlight Highlight Expression
  54. highlightwords.addHighlightWithOptions Highlight Selection with Options
  55. highlightwords.setHighlightMode Set Highlight Mode
  56. highlightwords.treeRemoveHighlight Remove view/item/context
  57. highlightwords.treeHighlightOptions Change Options view/item/context
  58. highlightwords.toggleSidebar Highlight Toggle Sidebar
  59. highlightwords.findPrevious Back view/item/context
  60. highlightwords.findNext Next view/item/context
  61. ```
  62. ## Project Manager
  63. ```
  64. 工程管理,可以快速在工程间切换
  65. ```
  66. ## Comment Box
  67. 推荐配置
  68. ```
  69. "commentBox.styles": {
  70. "defaultStyle": {
  71. "capitalize": false,
  72. "ignoreInnerIndentation": false,
  73. "ignoreOuterIndentation": false,
  74. "removeEmptyLines": false,
  75. "textAlignment": "center",
  76. "boxWidth": 200,
  77. "fillingToken": "="
  78. }
  79. },
  80. ```
  81. ## change-case
  82. ```
  83. 用于快速更换命名方式
  84. open_the_door
  85. openTheDoor
  86. OpenTheDoor
  87. ```
  88. ## Header source switch
  89. ```
  90. 快速在头文件和目标文件之间切换
  91. alt+o
  92. ```
  93. ## shell-format
  94. ```bash
  95. ExtensionId:foxundermoon.shell-format
  96. 配置说明
  97. ####################################
  98. 1. 安装插件
  99. vscode搜索foxundermoon.shell-format,然后安装
  100. 2. 安装shfmt(ubuntu)
  101. snap install shfmt
  102. 3. 确定shfmt路径
  103. >where shfmt
  104. /snap/bin/shfmt
  105. PS:注意安装完后需要新打开一个terminal刷新下环境变量,才能看到shfmt
  106. 4. 配置插件
  107. ctrl+p,Open Settings (JSON),配置中添加下面配置
  108. "shellformat.path": "/snap/bin/shfmt"
  109. ```