Reputation: 189
How do I customize the color of HTML attributes like class="", href="", src="", style="" etc. in Visual Studio Code?
Upvotes: 7
Views: 1783
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