M
M
med1um2019-02-04 10:39:18
Visual Studio Code
med1um, 2019-02-04 10:39:18

How to set property color for objects in VSCode theme?

Styling my theme in VSCode, I need to make all "prop" displayed in green:
var x = obj.prop;
those. how to set a custom color for all object properties?
jap javascript

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
med1um, 2019-02-04
@med1um

"editor.tokenColorCustomizations": {
  "textMateRules": [
  {
    "scope": "variable.other.property",
      "settings": {
        "foreground": "#FF0000"
       }
    }
  ]
}, ... ... ... ... ... ...

D
Draek Nelson, 2019-02-04
@daren93

In settings.json you define the field editor.tokenColorCustomizations and in it you can specify a theme in which you will change the color of the object and the type of the object.
For reference https://code.visualstudio.com/docs/getstarted/them...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question