Make VSCode Variables have Colour

后端 未结 3 1586
猫巷女王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:25

    Try this setting in your settings.json:

     "editor.tokenColorCustomizations": {
        "variables": "#f00"
     },
    

    There are a few such simple token color customizations available: variables, comments, keywords, functions, numbers, strings and types. Those only allow setting the color though.

    If you use "textMateRules" you can set more properties. For example:

    "editor.tokenColorCustomizations": {
      "textMateRules": [
        {
          "scope": "comment",
          "settings": {
            "fontStyle": "italic",
            "foreground": "#C69650"
          }
        }
      ]
    },
    

提交回复
热议问题