Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the current line color in Visual Studio 2010?

Maybe it's trivial but I couldn't find an answer to it for several weeks. It's set to some light gray color which is very bothersome in a dark color theme.

Any ideas how I can change this? Or even disable it if there is no way to change it.

like image 872
Joan Venge Avatar asked Nov 26 '10 21:11

Joan Venge


People also ask

What are the colors for changed lines in Visual Studio?

Here's your quick reference to the colors and icons in the editor window's right-hand margin: Yellow: The line has been changed but not yet saved. Green: The line has been changed and saved. Orange: The line has been changed, saved, and the change undone.

How do you change the line color in VS code?

In VS Code, open the Color Theme picker with File > Preferences > Color Theme. (Code > Preferences > Color Theme on macOS).

How do I change colors in Visual Studio?

Here's how to change the color theme of the IDE frame and the tool windows in Visual Studio. On the menu bar, choose Tools > Options. In the options list, choose Environment > General. In the Color theme list, choose either the default Dark theme, the Light theme, the Blue theme, or the Blue (Extra Contrast) theme.


2 Answers

Tools\Options\Productivity Power Tools\Highlight Current Line 

to enable/disable the feature.

Tools\Options\Environment\Fonts and Colors\  Current Line (Extension) Current Line Inactive (Extension) 

to change the colors.

like image 76
Brian Avatar answered Sep 24 '22 19:09

Brian


If you as many of us use ReSharper, highlighting current line can be achieved via:

ReSharper/Options...; Environment/Editor on the left; check "Highlight current Line" on the right.

After that you may need to restart Visual studio and if you do not like the color, change it via:

Tools/Options...; Environment/Fonts and Colors on the left; "ReSharper Current Line Highlight" on the right

See more details in here

like image 28
farfareast Avatar answered Sep 21 '22 19:09

farfareast