4

Visual Studio is inserting blank ineditable lines into my code files around braces and class/function declarations:

preview of the issue

How can I remove the blank ineditable line after lines 13 and 17?

1201ProgramAlarm
  • 32,384
  • 7
  • 42
  • 56
LuxGiammi
  • 631
  • 6
  • 20

1 Answers1

1

This can be caused in Visual Studio 2019 by CodeLens which you can disable via:

Tools->Options->Text Editor->All Languages->CodeLens

Cactusman
  • 335
  • 3
  • 12
  • I wanted to add an actual answer to this question even though it was answered in comments because I spent a fair while searching for this and I hope an answer may help the question appear more prominently in searches. I think the question title could probably use some revision for keywords but AFAIK I cannot edit it. – Cactusman Dec 18 '21 at 08:03