我正在从Notepad++切换到VS代码的过程中
目前困扰我的第一件事是,在文件中,PHP标记与DIV元素具有相同的颜色编码。我想把PHP标签的颜色改成红色。
只使用默认的VS Dark主题。
提亚
发布于 2018-06-27 05:46:51
您也可以在用户设置中进行此更改。我包含了一些我用来加粗函数、关键字等的额外定制。这些类型的更改应该放在用户设置文件中,而不是自定义特定的主题文件-因为当主题升级时,您的更改将丢失。
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"punctuation.section.embedded.begin.php",
"punctuation.section.embedded.end.php"
],
"settings": {
"foreground": "#ff0000"
}
},
{
"scope": "keyword",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "storage",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "constant.language",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "support.class.builtin",
"settings": {
"fontStyle": "bold"
}
}
]
}
https://stackoverflow.com/questions/50948893
复制相似问题