VScode 自定义 css 括号颜色不起作用

问题描述 投票:0回答:1

我想更改CSS代码中

{
符号的颜色,但它不起作用。 请参阅下面 css 代码中的
{

在上面的代码中,“{”看起来像黄色,即使我在 settings.json 文件中应用了自定义代码。

我的代码是

"editor.tokenColorCustomizations": {
        "[Sonokai]:{
            "textMateRules":[{
                "scope":[
                  "punctuation.section.property-list.begin.bracket.curly.css",
                  "meta.property-list.css",
                  "source.css",
                  "meta.embedded.block.html",
                  "text.html.derivative"
                ],
                "settings": {
                    "foreground":"#D7D8DBE7"
                }
              }
            ]

我发现无论我在

"foreground":"..."
中写什么颜色,它总是显示相同的颜色。 仅将颜色设置应用于
punctuation.section.property-list.begin.bracket.curly.css
范围也不起作用。

css visual-studio-code colors scope customization
1个回答
0
投票

工作台下.颜色自定义

"workbench.colorCustomizations": 
{
    "editorBracketHighlight.foreground2": "#ff0000",
    "editorBracketHighlight.foreground3": "#20ff6eda",
    "editorBracketHighlight.foreground1": "#00eeff"
},
© www.soinside.com 2019 - 2024. All rights reserved.