问题
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.
回答1:
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.
回答2:
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
回答3:
You can use the Visual Studio Theme Generator , where can you change all colors.
回答4:
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
来源:https://stackoverflow.com/questions/4288724/how-to-change-the-current-line-color-in-visual-studio-2010