Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 996
Micky McQuade Avatar asked Apr 14 '10 19:04

Micky McQuade


People also ask

How do I set environment variables in Visual Studio?

In Visual Studio 2019 right-click your project, choose Properties . In the project properties window, select the Debug tab. Then, under Environment variables change the value of your environment from Development to Production or other environments.

How do I change the color of a variable in Visual Studio?

On the Environment > General options page, change the Color theme selection to Dark, and then choose OK. The color theme for the entire Visual Studio development environment (IDE) changes to Dark.

How do you change environment variables in VS code?

If you open the . vscode/launch. json file in your workspace or select Debug > Open Configurations then you should see a set of launch configurations for debugging your code. You can then add to it an env property with a dictionary of string:string.


1 Answers

It's called Highlighted Reference

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

And the result is: enter image description here

like image 157
Ed Guiness Avatar answered Oct 12 '22 00:10

Ed Guiness