48

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.

Brian
  • 117,631
  • 17
  • 236
  • 300
Joan Venge
  • 315,713
  • 212
  • 479
  • 689

4 Answers4

72
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.

Brian
  • 117,631
  • 17
  • 236
  • 300
  • 5
    So, just so other people can feel like they're not crazy if they're seeing the same thing, I don't have the Current Line (Extension) option listed. I had to disable the highlight line option altogether. – Matt Oct 07 '12 at 23:27
  • the Current Line (Extension) option was listed under Text Editor. so Tools\Options\Environment\Fonts and Colors\Text Editor\Current Line (Extension) – FearlessHyena Apr 24 '13 at 19:58
  • 2
    For VS 2013 the option is Highlight Current Line (Active/Inactive) – mohas Jun 25 '14 at 10:47
  • For VS 2019: Tools/Options/Text Editor/General/Highlight current line – Koray Apr 01 '21 at 15:25
13

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

farfareast
  • 2,179
  • 1
  • 23
  • 22
  • I had to disable VS's standard highlight current line via Tools > Options > Text Editor, in the Display group, uncheck "Highlight current line" http://stackoverflow.com/questions/7883966/disabling-highlighting-of-current-line-in-the-visual-studio-2012-editor – DharmaTurtle Jan 14 '15 at 05:09
0

Just to add to Brian's answer above, to have the extension, you need to install the VC10 extension from extension manager, see those two links below how to do it:

http://weblogs.asp.net/scottgu/archive/2010/05/03/visual-studio-2010-extension-manager-and-the-new-vs-2010-powercommands-extension.aspx

http://weblogs.asp.net/scottgu/archive/2010/06/09/visual-studio-2010-productivity-power-tool-extensions.aspx

RoundPi
  • 5,819
  • 7
  • 49
  • 75
0

You can use the Visual Studio Theme Generator , where can you change all colors.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Nenad Banovic
  • 311
  • 1
  • 7