Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Visual Studio 2010 to highlight instances of a variable

I'm new using vs2010 I've read that when you click on a variable its suppose to highlight all the instances of that variable in that file and highlight red or show an error as well where the number line is located. How can I get vs2010 to do this because by default it doesn't do that for me and it would be great for the highlighting to work. Thanks.

like image 857
st2011 Avatar asked Feb 24 '12 17:02

st2011


People also ask

How do I highlight in Visual Studio?

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.

How do I turn off highlighting in Visual Studio?

Could you please navigate to "Tools > Options > Text Editor > C/C++ > Advance", set "Disable Reference Highlighting" to "True" and try again.


1 Answers

The Highlight all occurrences of selected word extension in Visual Studio Gallery does just that.

Highlight all occurrences of selected word

like image 52
KMoraz Avatar answered Sep 19 '22 14:09

KMoraz