VScode、Cursor 的settings.json文件,让其变成keil代码颜色风格 适合c语言 搭配浅色Visual Studio Visual Studio Light主题使用

{
    // "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了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值