vscode 自定义代码字体颜色,局部变量、全局变量、函数、宏、属性

vscode自定义代码字体与颜色风格

在setting.json中修改即可:
在这里插入图片描述

"editor.semanticTokenColorCustomizations": {
        "enabled": true, // enable for all themes
        "rules": {
            "*.static": {
                "foreground": "#ff0000",
                "fontStyle": "bold"
            },
            "property": {   //属性
                "foreground": "#10ec98",
                "fontStyle": "bold"
            },
            "macro": {      //宏
                "foreground": "#ec106c",
                "fontStyle": "bold"
            },
            "function": {   //函数
                "foreground": "#5491e0",
                "fontStyle": "bold"
            },
            "variable.global": { //全局变量
                "foreground": "#beda22",
                "fontStyle": "bold"
            },
            "variable.local": { //局部变量
                "foreground": "#2271da",
                "fontStyle": "bold"
            },
        }
    }
————————————————
版权声明:本文为CSDN博主「汤梦飞123」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_37733540/article/details/115455867
posted @ 2023-05-30 09:01  Kconfig  阅读(2982)  评论(0编辑  收藏  举报