Is there some way to colorize a specific word with a custom color?
I'm looking at "editor.tokenColorCustomizations" but nothing seems to hint at this.
I'd like to easily discern a specific piece of code like for example a custom method from everything else, say for example in javascript you use console.log() often to help you with debugging, i'd like that specific method to have a, say, red background, but not other console methods like console.clear()
Any way to do that?
Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
On the menu bar, choose Tools > Options. In the options list, choose Environment > Fonts and Colors. In the Show settings for list, choose Environment. If you want to change the font for tool windows only, in the Show settings for list, choose All Text Tool Windows.
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"
}
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With