Home > Blockchain >  How to hide CodeLens reference counts in VS2019?
How to hide CodeLens reference counts in VS2019?

Time:11-11

Visual Studio 2019 has a feature where it inserts lines showing you "reference counts":

enter image description here

How do i turn them off?

What have you tried?

  • Right click the reference count line

  • Click CodeLens Options

    enter image description here

  • The CodeLens options dialog appears

    enter image description here

Note that the option Show C# and Visual Basic references is disabled and cannot be unchecked.

How do i uncheck it?

Bonus Reading

CodePudding user response:

The answer remains, when Codelens is enabled, reference count is always shown. The feature has been unchanged largely since introduction and this has always been the case.

I'm not 100% sure about the reasons, but what I remember it has to do with reserving the screen realestate in case new indicators are activated later on due to context to prevent the code you're working on from jumping around.

  • Related