md *_*mon 7 textmate visual-studio-code
如何在 Visual Studio Code 中自定义 HTML 属性的颜色,例如 class=""、href=""、src=""、style="" 等?
打开settings.json文件并添加以下内容:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope":"entity.other.attribute-name",
"settings": {
"foreground": "#ca9829",
"fontStyle": "italic"
}
}
]
}
Run Code Online (Sandbox Code Playgroud)
您也可以将主题设置为仅适用于该主题,而不适用于全局。这是所有这一切的诀窍。
| 归档时间: |
|
| 查看次数: |
1377 次 |
| 最近记录: |