I\'m currently trying to write an extension for a new file type (ANTLR) and wonder how to change the colors used for syntax highlighting in Visual Studio Code. To me it look
You might consider using a color theme
Since VSCode 1.44 (March 2020), you now have
Theme Support for Semantic Tokens
Color themes can now write rules to color semantic tokens reported by language extensions like TypeScript.
"semanticHighlighting": true, "semanticTokenColors": { "variable.declaration.readonly:java": { "foreground": "#00ff00" "fontStyle": "bold" } }
The rule above defines that all declarations of readonly variables in Java shoud be colored greed and bold
See the Semantic Highlighting Wiki Page for more information.