Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the surrounding rectangle around the current line in Visual Studio?

This is the image showing the rectangle around the current line

This is the image showing the rectangle around the current line

I can't figure out how to remove this persisting rectangle around the current line I am typing in. This is a feature of Visual Studio 2017 ( the one I am using now), of course - but I don't like it. Is there any way really remove this? Or am I out of luck

like image 748
Abusayeed Roni Avatar asked Sep 13 '25 00:09

Abusayeed Roni


2 Answers

Tools > Options > Text Editor > General > Display group > [ ] Highlight current line (uncheck)

like image 177
Alex Guteniev Avatar answered Sep 16 '25 00:09

Alex Guteniev


For MacOS:

  1. Go to preferences->setting
  2. search setting -> type "Render line highlight "
  3. Choose none or gutter (which current line indicator is on the left side line number)
like image 41
InnerPeace Avatar answered Sep 15 '25 23:09

InnerPeace