S
S
Sergey Rakipov2020-05-28 19:10:33
Visual Studio Code
Sergey Rakipov, 2020-05-28 19:10:33

How can VS code change the font color, I don't need to change the whole theme, just the color of the variables?

If in the topic itself, it is not clear where there

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Viktorovich, 2020-05-29
@shotlandec1980

Add to settings.json:

"editor.semanticTokenColorCustomizations": {
    "enabled": false
},
"editor.tokenColorCustomizations": {
    "textMateRules": [
        {
            "name": "variable",
            "scope": ["variable.other.readwrite"],
            "settings": {
                "foreground": "#cc12bc"
            }
        }
    ]
}

Press Ctrl + Shift + P to open Command Explorer. Type Developer: Inspect Editor Tokens and Scopes and you'll see a tooltip when you click on the desired attribute.
5ed09dceb308f792004261.gif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question