Home > OS >  How to change 'this' keyword color in vscode custom theme
How to change 'this' keyword color in vscode custom theme

Time:09-29

I'm working on a custom theme over the Atom One Dark Theme, but I just can't figure out how to change the 'this' keyword color. When opening Developer: Inspect Editor Tokens and Scopes it shows as a variable. with dark one theme on

But with vscode regular dark theme it does appear in a different color. with vscode dark theme

Any ideas on how to do it?

Thanks!

CodePudding user response:

You just need to declare a tokenColorCustomizatons.

    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope" : "variable.language.this.js",
                "settings": {
                    // Include any settings you want for the this keyword.
                    "foreground": "#FF0000"
                }
            }
        ]
    }
  • Related