我想在之后改变这个词的颜色import
在 JS 中,在 VS Code 中。我附上了我的意思的屏幕截图。
截屏:
我指的是红色下划线的内容
我在中没有找到有效的条目文本配合规则 https://macromates.com/manual/en/language_grammars为了这。
我会很感激一些帮助。谢谢 :)
我不知道你正在使用哪种类型的 javascript,但你可以在你的settings.json
:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "variable.other.readwrite.alias.js",
"settings": {
"foreground": "#FF0000"
}
}
]
}
如何知道给定令牌的范围
在命令面板中输入:
> Developer: Inspect Editor Tokens and Scopes
This will show a popup of information related to the token at cursor:
![enter image description here](https://i.stack.imgur.com/I6c6m.png)
您将在底部看到适用的范围条目textmate scopes
,您可以使用列出的任何选项,但最上面的选项是最具体的选项
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)