Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to highlight user-specified words in Visual Studio?

My team often puts the word TODO in unfinished sections of code. Is there a way to add user-specified keywords to Visual Studio so that these are highlighted in some way? For example, in vim the word TODO is automatically highlighted.

For example, I'd want to see something like this:

//This is a stub -TODO:move this to another project

like image 954
Beep beep Avatar asked Mar 11 '09 03:03

Beep beep


People also ask

How do I highlight a word in Visual Studio code?

On windows hold down Ctrl + Shift and on mac Command + Shift, then press the key P.

How do I highlight all words in Visual Studio?

Right click on any word under the caret and select Toggle highlight of current word in the MultiWordHighlight menu.


1 Answers

In the Tools menu go to Options -> Environment -> Task List. Here you can enter Tokens.

These tokens will be added to the task list, but will not be highlighted. That can be achieved with one of the available TODO highlighters.

like image 105
scott Avatar answered Sep 20 '22 18:09

scott