vscode 插件
-
C/C++:c语言基本工具
-
markdown Pdf
-
Outline Map --》 大纲
-
Todo Tree --》TODO标签
-
[Bracket Pair Colorizer --》彩虹括号
代码提示 跳转使用c/c++intellisense
-
安装c++intellisense
最新版vscode所安装的c/c++插件保护c/c++intellisense插件,所以新版本不需要安装/c++intellisense设置 "C_Cpp.intelliSenseEngine": "Tag Parser", //设置intellisense引擎 "C_Cpp.intelliSenseEngineFallback": "enabled",
-
C/C++ GNU Global
C/C++ GNU Global ,添加环境变量
/C/C++ GNU Global 设置
"gnuGlobal.globalExecutable": "xxx\\gnu global\\bin\\global.exe",
"gnuGlobal.gtagsExecutable": "xxx\\gnu global\\bin\\gtags.exe",
"gnuGlobal.completion": "Disabled",
vscode 格式化代码
设置中,找到C_Cpp: Formatting。选择“vcFormat”,设置格式化引擎
设置中,找到“文本编辑器” - “Default Formatter”:
"editor.defaultFormatter": "ms-vscode.cpptools",
"C_Cpp.formatting": "vcFormat",
VSCODE 自定义颜色
///窗口自定义颜色//
"workbench.colorTheme": "Default Light Modern", //使用主题
"workbench.colorCustomizations": { // 颜色设置
"activityBar.foreground": "#020202", //活动菜单背景色
"activityBar.background": "#9bdbb3", //活动菜单背景色
"statusBar.foreground": "#000000", //状态栏前景色
"statusBar.background": "#C7FFDC", //状态栏背景色
"statusBarItem.remoteBackground": "#05721b", //远程状态栏背景色
"editor.background": "#C7EDCC", //编辑区域背景色
"sideBar.foreground": "#000000", //侧边栏前景色
"sideBar.background": "#C7FFC0", //侧边栏背景色
"terminal.foreground" : "#141416", //前背景色
"terminal.background": "#C7FFBB", //终端背景色
"editorIndentGuide.activeBackground":"#9ba4af",//匹配背景色
"editorBracketMatch.background": "#ff8a05a9",
"editorBracketMatch.border": "#ff0000",
"tab.activeBackground": "#c0d9f070",//激活标签页背景色
"titleBar.activeBackground": "#839eb870"//激活窗口背景色
},
///编辑区域自定义颜色//
"editor.selectionBackground": "#4fecb2",
"editor.selectionHighlightBorder": "#94767c00",//选中颜色
"editor.selectionHighlightBackground": "#f3bf708c",
"editor.fontSize":17, //编辑区域字体大小
"editor.tokenColorCustomizations": {
"comments": "#025c29", // 注释
"keywords": "#416ed8", // 关键字
"variables": "#d4289b", // 变量名
"strings": "#db6c11b0", // 字符串
"functions": "#382ce4c9", // 函数名
"numbers": "#9d1fbd", // 数字
},