Visual studio code VS代码中的自定义元标记名称颜色
我是新来的。我使用的VSCode只有一个黑暗+主题。我想将元标记名称颜色从“#E06C75”更改为“#1b1ff0”。我试图修改settings.json,但没有成功。请帮我解决这个问题 为了弄清楚什么是“元标记名”(可能我用错了词),它的意思是XML文件中的Visual studio code VS代码中的自定义元标记名称颜色,visual-studio-code,Visual Studio Code,我是新来的。我使用的VSCode只有一个黑暗+主题。我想将元标记名称颜色从“#E06C75”更改为“#1b1ff0”。我试图修改settings.json,但没有成功。请帮我解决这个问题 为了弄清楚什么是“元标记名”(可能我用错了词),它的意思是XML文件中的,或者html标记,如,等等 这是我的settings.json文件。 希望能有帮助 多谢各位 { "php.validate.executablePath": "C:/xampp/php/php.exe", "wo
,或者html标记,如
,
等等
这是我的settings.json文件。
希望能有帮助
多谢各位
{
"php.validate.executablePath": "C:/xampp/php/php.exe",
"workbench.sideBar.location": "right",
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "One Dark Pro",
"workbench.colorCustomizations":{
"tokenColors": [
{
"scope": "entity.name.tag",
"settings": {
"foreground": "#1b1ff0"
}
},
{
"scope": "text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade",
"settings": {
"foreground": "#1b1ff0"
}
}
]
}
}
您可以尝试使用扩展来配置令牌颜色。虽然我不知道这个插件是否提供了一种表示“任何令牌”的方法,但由于使用了Regex,我认为有,你应该弄清楚(可能类似于
*
,不是实际的Regex代码,顺便说一句,但你明白了)你的语法有点不正确:
"editor.tokenColorCustomizations": { // this is different
"textMateRules": [ // this is different
{
"scope": "entity.name.tag",
"settings": {
"foreground": "#1b1ff0"
}
},
{
"scope": "text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade",
"settings": {
"foreground": "#1b1ff0"
}
}
]
}
你好,谢谢你的回复。不幸的是,当我将您的代码复制到settings.json中时,我收到一个通知,上面说“未知的配置设置”。很抱歉,我的拼写错误已经修复。