2017-07-19 317 views

回答

19

1.15 (July 2017),你可以将它从settings.json按Ctrl +

"editor.tokenColorCustomizations": { 
    "comments": "#d4922f" 
}, 

改变从1.20 (January 2018)你也可以做到这一点对每个主题分别:

"editor.tokenColorCustomizations": { 
    "[Atom One Dark]": { 
     "comments": "#d4922f" 
    } 
}, 

找到合适的范围:

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

选择优先级:

https://code.visualstudio.com/blogs/2017/02/08/syntax-highlighting-optimizations#_textmate-themes

4

貌似令牌颜色不能此刻的设置中自定义:

最突出的编辑器的颜色是被安装的语言语法基础 令牌颜色。这些颜色由 颜色主题定义,并且可以(当前)不能在设置中自定义。

来源:https://code.visualstudio.com/docs/getstarted/theme-color-reference

我也注意到,如果你去到主题文件夹,例如: C:\ Program Files文件(x86)的\微软VS代码\资源\程序\分机\主题 - monokai 并编辑monokai-color-theme.json文件,找到具有“name”:“Comment”的行并更改它将工作的“foreground”颜色。只要确保重新启动程序。

相关问题