【问题标题】: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:为什么属性“光标”以黄色突出显示,而所有其他正确拼写的属性以蓝色突出显示?
【发布时间】:2020-06-24 01:40:07
【问题描述】:

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

感谢任何见解。

谢谢!

【问题讨论】:

    标签: css visual-studio-code sass syntax codehighlighter


    【解决方案1】:

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

    【讨论】:

    • 感谢您的信息!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-12-22
    • 1970-01-01
    • 2020-12-04
    • 2011-07-09
    • 2018-06-24
    • 2018-06-08
    相关资源
    最近更新 更多