Make VSCode Variables have Colour

后端 未结 3 1588
猫巷女王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条回答
  •  深忆病人
    2021-02-06 16:28

    This is working for me. It makes it look like the default Javascript formatting as far as I can see.

    In settings.json

    "editor.tokenColorCustomizations": {
        "textMateRules": [
          {
            "scope": "meta.function-call.generic.python",
            "settings": {
              "foreground": "#DCDCAA"
            }
          },
          {
            "scope": "source.python",
            "settings": {
              "foreground": "#9CDCFE"
            }
          },
          {
            "scope": "punctuation.definition.string.begin",
            "settings": {
              "foreground": "#ce9178"
            }
          },
          {
            "scope": "punctuation.definition.string.end",
            "settings": {
              "foreground": "#ce9178"
            }
          },
          {
            "scope": "punctuation",
            "settings": {
              "foreground": "#dfdfdf"
            }
          }
        ]
    }
    

提交回复
热议问题