How do I customise the color of HTML tags in Visual Studio Code?

后端 未结 3 2157
南旧
南旧 2021-02-13 12:48

I\'m using the Abyss theme which I like, but certain colors are too dark. I have customized some token colors using (for instance):

\"editor.tokenColorCustomizat         


        
3条回答
  •  渐次进展
    2021-02-13 13:30

    The accepted answer is good, but thought I'd add this as it obviates the need to edit the theme JSON itself. I edited my settings as follows:

    "editor.tokenColorCustomizations": {
        "[Abyss]": {
            "keywords": "#7ea4df",
            "types": "#1fa8d8",
            "comments": "#727272",
            "strings": "#29a792",
            "textMateRules": [
                {
                    "scope": "entity.name.tag",
                    "settings": {
                        "foreground": "#7ea4df"
                    }
                }
            ]
        }
    },
    

提交回复
热议问题