{
// "window.commandCenter": 1, // 移除无效设置
"files.encoding": "gb2312",
"files.defaultLanguage": "cpp", // 修改为有效的语言标识符
"cmake.showOptionsMovedNotification": false,
"workbench.colorTheme": "August - Arstotzka (Darker)",
"terminal.integrated.fontSize": 10,
"editor.fontSize": 12,
"editor.wordSegmenterLocales": "zh", // 根据需要调整或移除
"editor.defaultFormatter": "ms-vscode.cpptools",
"notebook.defaultFormatter": "ms-vscode.cpptools",
"editor.inlayHints.fontFamily": "宋体",
"editor.fontFamily": "'宋体', 'Courier New', monospace", // 修正字体名称
"C_Cpp.clang_format_fallbackStyle": "Google",
"workbench.colorCustomizations": {
"editorBracketMatch.background": "#FF0000",
"editorBracketMatch.border": "#FF0000",
"editorBracketMatch.fg": "#FF0000",
"editorIndentGuide.background1": "#f0f3f0", // 普通缩进线颜色
},
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "comment",
"settings": {
"foreground": "#f0659a7a"
}
},
{
"scope": "source",
"settings": {
"foreground": "#000000" // 设置默认文本颜色为白色
}
},
{
"scope": "entity.name.function",
"settings": {
"foreground": "#493daf" // 浅绿色
}
},
{
"scope": "variable.parameter", // 针对函数参数
"settings": {
"foreground": "#000000" // 与函数名相同的浅绿色
}
},
{
"scope": [
"storage.type",
"support.type",
"entity.name.type",
"meta.type"
],
"settings": {
"foreground": "#2e2d2e"
}
},
{
"scope": "meta.preprocessor.define",
"settings": {
"foreground": "#2a3236" // 绿色,用于整个 #define 行
}
},
{
"scope": "entity.name.function.preprocessor",
"settings": {
"foreground": "#3f853f" // 亮绿色,用于宏名称
}
},
{
"scope": "constant.numeric",
"settings": {
"foreground": "#3f853f" // 亮绿色,用于数字值
}
},
{
"scope": "string.quoted.double.preprocessor",
"settings": {
"foreground": "#164416" // 亮绿色,用于字符串值
}
}
]
},
"editor.fontLigatures": false,
"window.zoomLevel": 0,
"editor.suggest.selectionMode": "never",
"editor.suggestOnTriggerCharacters": false,
"editor.quickSuggestions": {
"other": "off"
},
"workbench.statusBar.visible": false,
"editor.guides.highlightActiveIndentation": false
}
VScode、Cursor 的settings.json文件,让其变成keil代码颜色风格 搭配浅色Visual Studio Visual Studio Light主题使用 .。众所周知,vscode的代码颜色太多了,导致注意力变差,没法集中精神。所以这里将颜色进行了手动限制, 降低了明度和饱和度。
用过keil的,比较适合这种 。适合c代码。嵌入式开发。
眼睛easy了。