Subscribe to our YouTube Channel for more Videos

How to disable highlighting of current line in Visual Studio ?


This blog post will explain how one could disable the highlighting of the current line in Visual Studio 2019. Although this post uses Visual Studio 2019 , the same feature is available in previous versions of Visual Studio as well (Visual Studio 2017 , Visual Studio 2015 and Visual Studio 2012).

One of the features in the Visual Studio IDE is that it highlights the current line by changing the background color of the current line that is selected. In Visual Studio 2019 , its the color border around the current line.

How to disable highlighting of current line in Visual Studio ?

If you don’t want the current line to be highlighted , follow the below steps in Visual Studio to disable it.

  1. Open Visual Studio and navigate to Tools -> Options.
  1. In the Options Dialog , select Text Editor and under the “Display Group” , uncheck the option “Highlight current line”.

This will disable the highlighting the current line in Visual Studio.

Watch this video in Youtube Channel

Senthil Kumar B
Senthil Kumar is a former Microsoft MVP (Most Valuable Professional). He is a Co-Author of the book "Windows 10 Development Recipes using JavaScript and CSS" for Apress Publication. He is a technical presenter, blogger, mentor and a Geek.  Senthil is a regular speaker is various local user groups. He has presented at conferences like Great Indian Developer Summit (GIDS) & Microsoft DevCamps. You can reach out to him via his Twitter handle @isenthil.