Micky McQuade
Micky McQuade

Reputation: 1858

Environment Setting for Highlighted Variable in Visual Studio

Environment Fonts and Colors (Where's the one I'm looking for?)

I noticed that VS has a feature that if you click on a variable, it highlights all instances of that variable in your current file.

With my color scheme (a dark background with light text) it makes the highlighted variable very unreadable. I've gone through and tried to figure out which setting under "Environment Fonts and Colors" controls the background color of the highlighting, but I'm not having any luck. Can someone point me in the right direction?

So, in one sentence:

What in the list of "Environment Fonts and Colors" controls the highlighting that happens when you click on a variable?

Upvotes: 38

Views: 10697

Answers (3)

Saeb Amini
Saeb Amini

Reputation: 24380

In my case, I had to change Fonts and Colors > Text Editor > Match Color:

enter image description here

Upvotes: 2

Ratha Krishnan
Ratha Krishnan

Reputation: 11

Highlighted Variable color change in Visual Studio

Tools > 
Options > 
Environment> 
Fonts and Colors -> 
Text Editor -> Highlighted Reference

Setting Page

Variable highlight

Then check it you will get color change.

Upvotes: 0

Ed Guiness
Ed Guiness

Reputation: 35237

It's called Highlighted Reference

Tools > Options > Env > Fonts and Colors > Text Editor > Highlighted Reference

And the result is: enter image description here

Upvotes: 50

Related Questions