How can i change the color in the editor for the px and s values?

Viewed 35

Example

I can't find the name for the px and s (which are green) values so i can change them inside the "editor.tokenColorCustomizations" in settings.json file.

1 Answers
 "editor.tokenColorCustomizations": {
    "textMateRules": [
        {
          // "name": "CSS Class and Support - Class",
          "scope": [
            "keyword.other.unit.px.css",
            "keyword.other.unit.s.css",
          ],
          "settings": {
            "foreground": "#f00"
          }
       }
    ]
  }

Use the tool from the Command Palette:

Developer: Inspect Editor Tokens and Scopes

See Scope Inspector.

css scopes with the Scope Inspector

Related