Disabling highlighting of current line in the Visual Studio editor
Visual StudioVisual Studio-2012Visual Studio-2015Visual Studio-2017Visual Studio-2019Visual Studio Problem Overview
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?
Visual Studio Solutions
Solution 1 - Visual Studio
> 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)"
Solution 2 - Visual Studio
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
Solution 3 - Visual Studio
if its visual code make
"editor.renderLineHighlight": "none"
Solution 4 - Visual Studio
> The Visual Studio editor highlights the current line by changing the background color of the current line.
The only time I've seen this is when "Use Windows High Contrast settings" is enabled (Options > Environment > General)
With this setting disabled, I just get a subtle grey box to indicate the current line (this may depend on your Color Theme):
Solution 5 - Visual Studio
If you're using Resharper, it's:
Tools -> Options -> Text Editor:
ReSharper Current Line Highlight
Solution 6 - Visual Studio
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.
Solution 7 - Visual Studio
press -> Ctrl + comma
Search => Render Line Highlight
select none from the options
Solution 8 - Visual Studio
For VsCode 2021 version users
Workspace > Text-Editor > Render Line Highlight > none
Solution 9 - Visual Studio
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 .