Skip to content

How to change const variables / properties colors #1283

Closed Answered by equinusocio
FabianMontoya asked this question in Q&A
Discussion options

You must be logged in to vote

This is how Material Theme colors have been since 2016 (community extension last visual update was in 2016).

We rely on VSCode API to let everyone customize any color and part of the theme, matching their taste. You want red variables, but not everyone.

Get the scope you want to change

Search for "scope" in the command palette and run the scope inspector, then click any part of your code to get the scope name/s

Customize variable colors with semantic highlight on:

"editor.semanticTokenColorCustomizations": {
  "[Material Theme*]": {
    "rules": {
      "variable": "#ff0000"
    }
  }
}

Customize variable colors with disabled semantic highlight feature

"editor.tokenColorCustomizations": {…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by equinusocio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants