首页 > 解决方案 > 在 VSCode 中更改 Mongoose Schema 中键的颜色

问题描述

我想在 VSCode 中更改猫鼬模式中键的颜色。

textmate 范围显示为“constant.other.object.key.js”。但是,如果我在 settings.json 的“editor.tokenColorCustomizations”中将颜色应用于相同的颜色,则它不起作用,但如果我应用 fontStyle,它会起作用..

我的settings.json:

"editor.tokenColorCustomizations": {
        // "strings": "#407dcc",
        "variables": "#f32020",
        "textMateRules": [
            {
                "scope": "constant.other.object.key.js",
                "settings": {
                    "foreground": "#fd3e3e",
                    "fontStyle": "italic underline"
                }
            }
        ]
    },

正如你在这里看到的,字体样式斜体和下划线被应用,但是前景红色没有被应用。

任何帮助深表感谢

标签: visual-studio-codesyntax-highlightingcolor-scheme

解决方案


推荐阅读