Visual Studio Code 1.17.2 覆盖字体样式

Vie*_*iet 3 visual-studio-code

有没有办法使用用户设置来覆盖 VSC 的默认主题样式(例如斜体或粗体注释),而不是像这里的建议那样编辑文件

我已经按照此处描述的颜色完成了此操作,但找不到 Microsoft 提供的任何有关样式的文档。

在用户设置中设置样式可以覆盖您使用的任何主题(至少是默认主题),因此您不必每次更改主题时都编辑文件。

Ale*_*lex 6

设置.json Ctrl +,

"editor.tokenColorCustomizations": {
    "textMateRules": [{
        "scope": "comment",
        "settings": {
            "fontStyle": ""
        }
    }]
}
Run Code Online (Sandbox Code Playgroud)

https://code.visualstudio.com/docs/extensions/themes-snippets-colorizers#_textmate-theme-rules