主题
- Atom One Dark Theme
- Material Theme
- Monokai Pro
- One Dark Pro(我用这个,个人习惯而已)
- One Dark Theme
- One Monokai Theme
- Sublime Material Theme
- vscode-icons
C/C++
来自微软官方的 C/C++ 插件,必备的插件。
C++ Extension Pack
对官方工具的补充,对以下工具功能增强
Git History![](https://i-blog.csdnimg.cn/blog_migrate/2b5bd650a48ce692435e07597edb6cdf.png)
Git Graph
git版本控制,重要性不必多说,这个插件可以实现操作的GUI化,非常方便。View a Git Graph of your repository, and easily perform Git actions from the graph. Configurable to look the way you want!
gitlens
gitlens的功能异常强大,图示仅仅是其功能的冰山一角,其甚至可以显示出代码部分谁在什么时候做的更改。
TODO Highlight
高亮显示TODO内容
TODO Tree
Todo Tree是vscode中一款可以在侧边栏记录TODO注释(也可以配置其他的注释)并且可以高亮注释行的很优秀的插件。有的时候我们写程序的时候,难免会遇到一些情况需要标记或者搁置,在写代码的时候会用一些特殊的注释来表示不同的内容,使我们可以快速的定位我们注释的位置。
在vscode中配置todo标记时的颜色
"todo-tree.tree.showScanModeButton": false,
"todo-tree.filtering.excludeGlobs": ["**/node_modules", "*.xml", "*.XML"],
"todo-tree.filtering.ignoreGitSubmodules": true,
"todohighlight.keywords": [],
"todo-tree.tree.showCountsInTree": true,
"todohighlight.keywordsPattern": "TODO:|FIXME:|NOTE:|\\(([^)]+)\\)",
"todohighlight.defaultStyle": {},
"todohighlight.isEnable": false,
"todo-tree.highlights.customHighlight": {
"BUG": {
"icon": "bug",
"foreground": "#F56C6C",
"type": "text"
},
"FIXME": {
"icon": "flame",
"foreground": "#FF9800",
"type": "tag-and-comment"
},
"TODO": {
"foreground": "#FFEB38",
"type": "line"
},
"NOTE": {
"icon": "note",
"foreground": "#67C23A",
"type": "whole-line"
},
"INFO": {
"icon": "info",
"foreground": "#909399",
"type": "text-and-comment"
},
"TAG": {
"icon": "tag",
"foreground": "#409EFF",
"type": "line"
},
"HACK": {
"icon": "versions",
"foreground": "#E040FB",
"type": "line"
},
"XXX": {
"icon": "unverified",
"foreground": "#E91E63",
"type": "line"
}
},
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"INFO",
"NOTE",
"TAG",
"XXX"
],
"todo-tree.general.statusBar": "total"
Bookmarks
为代码块添加标签,代码上面打书签,
- Ctrl + Alt+ k,添加/删除标签。
- Ctrl+Alt+J, 跳转上一个书签。
- Ctrl+Alt+L, 跳转下一个书签。
Window Colors
可以为不同的项目窗口设置一个不同的边框颜色。
Clang-Format
对于代码的格式,不同的人有不同的风格,在clang-format插件的基础上,可以自定义自己的代码风格。
将.clang-format文件拷贝到对应的工程目录下:
在打开的源代码下执行 Alt + shift + F 即可格式化源代码
安装Clang-Format
(这里指的不是插件奥,准确的来说是安装LLVM)
Download LLVM releases
LLVM Download Page
点击安装,将bin所在目录配置到环境变量中即可。