Visual Studio 2019 has a feature where it inserts lines showing you "reference counts":
How do i turn them off?
What have you tried?
Note that the option Show C# and Visual Basic references
is disabled and cannot be unchecked.
How do i uncheck it?
Bonus Reading
- How to hide reference counts in VS2013? (the exact same question, but for VS2013, where the answers work)
- Cannot untick "Show C# and Visual Basic References"
- Why can I not disable the Codelens show references
- Cannot untick "Show C# and Visual Basic References" #36378
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.