Make VSCode Variables have Colour

后端 未结 3 1584
猫巷女王i
猫巷女王i 2021-02-06 15:45

I would like to make variables displayed with colours.

This is how it looks:

This is how I want it to be:

Looking through here, I canno

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-06 16:27

    You should be able to add the color in tokenColors to customize the colors (basic example):

    SomeTheme.json

    { 
     "name": "Some Theme",
     "type": "dark",
     "colors": {
     ...
    },
    "tokenColors": [
       {
        "name": "Variables",
        "scope": "variable",
        "settings": {
        "foreground": "#e06c75"
       }
      },
     ]
    }
    

    I don't have VSCode, although from looking at another themes JSON it looks similar.

提交回复
热议问题