Search code examples
htmljsontags

How can I make the same comment color?


Like here

1

How can I make the same comment color? I tried to change themes, values in settings.json "editor.tokenColorCustomizations", but it always changed not only the color of the text or tag, but all together.But I would like it to be like in the screenshot


Solution

  • I've found that you can change the color of the text of the comment with this:

    "editor.tokenColorCustomizations": {
        "textMateRules": [
          {
            "scope": "comment",
            "settings": {
              "foreground": "#C69650", // Your custom color
            }
          }
        ]
      },
    

    Probably the color of the tag will change with a theme or another "scope" item.