Blueprint
Blueprint

Reputation: 442

VS Code costumizing functions and methods colors

I would like to costumize the colors of functions in VScode, as far as i understand i need to do it in the settings.json file in the workbench.colorCustomizations section. My question is what property should i use in order to change the color of functions? Also is it possible to define a different color for native methods?

{
  "workbench.colorCustomizations": {
    "what key should go here?": "#000000"
  }
}

Upvotes: 1

Views: 2687

Answers (1)

Blueprint
Blueprint

Reputation: 442

So thanks to the answer of Mark, i found out that in order to costumize the scopes' colors i could use the "Inspect Editor Tokens and Scope" from the Command Palette, and then use it like so in the settings.json:

    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "entity.name.function",
                "settings": {
                    "foreground": "#66d9ef",
                },

            }
        ]
    }

creating a new object with scope and settings for each costumization

Upvotes: 3

Related Questions