Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which display item under Fonts and Colors controls occurrence highlighting?

Whenever I place my cursor somewhere within a type, variable name, or method name, Visual Studio highlights the item, along with all other occurrences of the type, variable name, or method name within the same source file. The problem is that the highlighting color makes it very difficult to read with the color scheme I'm used to.

Is there a "Display Item" within "Fonts and Colors" to change this color? Or is there a way to turn off this highlighting altogether?

like image 900
carmbrester Avatar asked Dec 08 '10 01:12

carmbrester


1 Answers

What you're looking for is actually called "Highlighted Reference". It's certainly an intuitive name once you know it, but perhaps not the first thing that pops into your mind if you don't. You can change the text and background colors of this option to anything you want:

  Changing "Highlighted Reference" color in VS Options

I'm not sure how you could turn it off completely, but I also can't imagine why you'd want to...I use this all the time. You might be able to turn it off by setting the colors it uses to be the same as your default colors, although I'm not sure since I've never actually tried it.

Alternatively, if you find this feature distracting despite its usefulness, you could make the effect less jarring by specifying a background color that is very similar to your default background color.

like image 105
Cody Gray Avatar answered Oct 01 '22 16:10

Cody Gray