CSS in VS-Code:为什么 属性 "cursor" 以黄色突出显示,而所有其他拼写正确的属性以蓝色突出显示?

CSS in VS-Code: why is the property "cursor" highlighted in yellow while all other correctly-spelled properties are highlighted in blue?

我想知道,在 VS-Code 中编写 CSS 时:为什么 属性 "cursor" 以黄色突出显示,而所有其他属性以蓝色突出显示?

感谢任何见解。

谢谢!

是的,这是一个严重的错误。如果您检查 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 个问题的错误。