Visual Studio Code change color for specific word

Viewed 266

I would know if is possibile to set a color for the specific occurrence of a text in Visual Studio Code, and, if yes, how i can do it. For example "console.log".

1 Answers

You could do that easily with the extension TODO Highlight. In your settings.json:

 "todohighlight.keywords": [

    {
        "text": "console.log",
        "color": "#ffffff",
        "backgroundColor": "red",
        "overviewRulerColor": "grey"
    }
  ]
Related