{
"editor.fontWeight": 800,
"editor.fontSize": 18,
"C_Cpp.clang_format_fallbackStyle": "WebKit", //如果使用样式 "file" 调用 clang 格式但是找不到 .clang 格式文件,则使用预定义的样式的名称作为回退
"C_Cpp.clang_format_path": "D:\\Program Files\\LLVM\\bin\\clang-format.exe", //clang 格式可执行文件的完整路径
"settingsSync.ignoredSettings": [
"-C_Cpp.clang_format_path" //配置在同步时需要忽略的设置
], //若项目目录下有.clang-format,则定会调用。然后更改.clang-format中的BreakBeforeBraces: Webkit为Allman元素,则格式全部更改。
// "window.zoomLevel": -1, //窗口的缩放级别
"workbench.colorTheme": "Default Light+", //工作台主题颜色
"workbench.colorCustomizations": { // 颜色设置
"editor.background": "#C7EDCC",
"sideBar.background": "#FAF9DE",
"terminal.background": "#EAEAEF"
},
"editor.renderControlCharacters": true,
"http.proxySupport": "off",
"editor.formatOnPaste": true, //粘贴的时候格式化
"editor.formatOnSave": true, //保存的时候格式化
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true // import 导入排序
},
"editor.wordWrapColumn": 120, //一行最多120个字符
"workbench.statusBar.visible": true,
"remote.SSH.showLoginTerminal": true,
"workbench.activityBar.visible": true,
"workbench.sideBar.location": "left",
"explorer.confirmDelete": false,
"diffEditor.ignoreTrimWhitespace": false,
"terminal.integrated.automationShell.windows": "D:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.profiles.windows": {
"Git-Bash": {
"path": "D:\\Program Files\\Git\\bin\\bash.exe"
}
},
"terminal.integrated.defaultProfile.windows": "Git-Bash",
"files.autoGuessEncoding": true, //打开文件时,猜测字符集编码
"git.path": "D:\\Program Files\\Git\\bin\\git.exe",
/**/
"editor.minimap.enabled": true,
"C_Cpp.autocomplete": "Default",
"[cpp]": {
"editor.wordBasedSuggestions": true
},
"[c]": {
"editor.wordBasedSuggestions": true
}
}
Vscode 用户区的settings.json文件
最新推荐文章于 2024-08-23 22:29:09 发布