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?
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:
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.
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