Skip to content

How to customize colors to match your taste #1274

Locked Pinned Answered by equinusocio
equinusocio asked this question in Q&A
Discussion options

You must be logged in to vote

Color Scheme override

Basic example

"editor.tokenColorCustomizations": {
    "[Material Theme]": {
        "comments": "#229977"
    }
},

Advanced example

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 and use them as following.

  • editor.tokenColorCustomizations allows you to edit the syntax color of any element.
  • editor.semanticTokenColorCustomizations allows you to edit semantic highlighting tokens
  • workbench.colorCustomizations allows you to edit vscode UI elements.

Customizing semantic tokens (with semantic highlight ON)(read vscode doc)

"editor.semanticTokenColorCustomizations": {
  "[Material Theme*]": {
…

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
1 participant