md daudul islam sumon
md daudul islam sumon

Reputation: 189

How do I customize the color of HTML attributes in Visual Studio Code?

How do I customize the color of HTML attributes like class="", href="", src="", style="" etc. in Visual Studio Code?

Upvotes: 7

Views: 1783

Answers (1)

Stefanie
Stefanie

Reputation: 497

Open the settings.json file and add this:

"editor.tokenColorCustomizations": {
    "textMateRules": [
        {
            "scope":"entity.other.attribute-name",
            "settings": {
                "foreground": "#ca9829",
                "fontStyle": "italic"
            }
        }
    ]
}

You can set the theme too to only apply with that one, not globally. Here is a know-how for all this.

Upvotes: 9

Related Questions