Question

The Visual Studio editor highlights the current line by changing the background color of the current line. Is there a simple way to disable this highlighting? Otherwise, which parameter in Fonts and Colors dialog controls the background color of the currently selected line in the editor?

Was it helpful?

Solution

Is there a simple way to disable this highlighting?

Tools -> Options -> Text Editor, in the Display group, uncheck "Highlight current line"

Which parameter in Fonts and Colors dialog controls the background color of the currently selected line in the editor?

The colors are named "Highlight Current Line (Active)" and "Highlight Current Line (Inactive)"

OTHER TIPS

To disable the border around the current line

In VS 2019

Go to : Environment -> Fonts and Colors:

Find the display item: Highlight Current Line

Set the item foreground color to: Automatic

In VS 2017 and earlier

Go to : Tools -> Options -> Text Editor:

Find the display items:

  • Highlight Current Line (Active)
  • Highlight Current Line (Inactive)

Set the item foreground color to: Automatic

if its visual code make

"editor.renderLineHighlight": "none"

If you're using Resharper, it's:

Tools -> Options -> Text Editor:

  ReSharper Current Line Highlight

In addition to the previous answer, I'd like to mention that Visual Assist (the tomato icon) also have an highlight current line feature, that can still be active while your Visual Studio highlight option is turned off. This drove me crazy! Find it in Visual Assist Option panel, Display category.

So don't forget to also uncheck the VisualAssist highlight option.

edit my settings:

  • Visual Assist option turned off
  • Visual Studio option turned on (in the Text Editors part)
  • In the font color settings, for Highlight current line (active and inactive), set the foreground to Automatic
  • Finally you can set your highlight color as you want with the background color.

Last point, sometimes Visual Studio mess things up even more, you may have to restart it, or close/open your tabs... sadly, YMMV.

Visual assist and vsvim extensions were conflicting. So I disabled it within the visual assist options.

Uncheck the option: Highlighting->Highlight results of Quick Find and Find in Files. For some reason "esc" doesn't work .

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top