Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>DoveCppThemeNew to Visual Studio Code? Get it now.
DoveCppTheme

DoveCppTheme

CrazySpottedDove

|
1 install
| (0) | Free
A theme designed for Cpp
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

dove cpp theme

这是一个用于使 cpp 的语法高亮更清晰的插件,只对 cpp 生效。细化标注了不同种类变量,推荐配合 One Dark Pro Flat 主题使用。

参考效果

alt text

  • 注释:绿色
  • 成员:浅褐色
  • 函数参数:粉色
  • 非 const 变量:加下划线
  • 函数:蓝色粗体
  • const 等限定词:茶色粗体
  • new 等单词算符:白色粗体
  • return 等控制语句关键词:橙红色粗体

注意事项

本插件的工作原理本质是根据当前文件类型是否为 cpp 修改您的 config.json 中的

 "editor.semanticTokenColorCustomizations": {
        "rules": {
            "parameter": {
                "foreground": "#FF69B4",
                "fontStyle": "underline"
            },
            "parameter.readonly": {
                "fontStyle": ""
            },
            "property": {
                "foreground": "#d09494"
            },
            "variable": {
                "foreground": "#e06c75",
                "fontStyle": "underline"
            },
            "variable.readonly": {
                "fontStyle": ""
            }
        }
    },
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "comment",
                "settings": {
                    "foreground": "#63ba37",
                    "fontStyle": "italic"
                }
            },
            {
                "scope": "support.class, entity.name.type.class, entity.name.type",
                "settings": {
                    "foreground": "#c678dd"
                }
            },
            {
                "scope": "keyword.control",
                "settings": {
                    "foreground": "#f08080",
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "keyword",
                "settings": {
                    "foreground": "#f08080"
                }
            },
            {
                "scope": "storage.type.class",
                "settings": {
                    "foreground": "#A8C5A3",
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "keyword.declaration.class",
                "settings": {
                    "foreground": "#A8C5A3",
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "storage.type.struct",
                "settings": {
                    "foreground": "#A8C5A3",
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "keyword.declaration.struct",
                "settings": {
                    "foreground": "#A8C5A3",
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "storage.type.enum",
                "settings": {
                    "foreground": "#A8C5A3",
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "keyword.declaration.enum",
                "settings": {
                    "foreground": "#A8C5A3",
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "storage.modifier",
                "settings": {
                    "fontStyle": "bold",
                    "foreground": "#c2569e"
                }
            },
            {
                "scope": "keyword.operator.wordlike",
                "settings": {
                    "fontStyle": "bold"
                }
            },
            {
                "scope": "entity.name.function",
                "settings": {
                    "foreground": "#61afef",
                    "fontStyle": "bold"
                }
            }
        ]
    },

因此有可能影响您已有的配置。如无相关配置,则可放心使用。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft