VS代码中的CSS:为什么“ cursor”属性以黄色突出显示,而其他所有拼写正确的属性都以蓝色突出显示?

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

[我想知道,以VS代码编写CSS时:为什么“ cursor”属性以黄色突出显示,而所有其他属性都以蓝色突出显示?

enter image description here

我感谢任何见识。

谢谢!

css visual-studio-code sass syntax codehighlighter
1个回答
0
投票

是,这是一个错误。如果检查cursor范围,则​​表明它是一个标签,特别是entity.name.tag.css!我敢打赌,相同的黄色用于您的真实标签。

您可以在设置中对此进行解决:

"editor.tokenColorCustomizations": {

     "textMateRules": [
       {
         "scope": "meta.property-list.scss entity.name.tag.css",
         "settings": {
           "foreground": "#f3873f",   // set to whatever color your tags are
                                      // which the same "Tokens and Scopes" Inspector
                                      // in the command palette will show you
         }
       },
     ]
},

您应该提交带有vscode问题的错误。

© www.soinside.com 2019 - 2024. All rights reserved.