【发布时间】:2021-05-13 06:14:20
【问题描述】:
我正在更改我的主题属性,例如 VS Code 中 comment 的前景色。
在settings.json 文件中使用editor.tokenColorCustomizations。
"editor.tokenColorCustomizations": {
"[Tinacious Design (legacy, 2016)]": {
"comments": "#797979",
"string": "#898989",
}
}
comments 颜色已完美更改,但是当我为string 值分配颜色时,它显示错误:
“不允许使用属性字符串。”
错误图片
【问题讨论】:
-
可能是因为
"string"的父属性被方括号包围了? ([,])
标签: javascript json visual-studio-code themes vscode-settings