Share via


Visual Studio 2015: How to hide "n references" in Code view

Question

Wednesday, July 29, 2015 2:59 AM | 8 votes

Hi,

I'm using Visual Studio 2015 Pro (Version 14.0.23107.0 D14REL).
In Code editor, several lines "n references" apprear. I don't like it, so I'd like to know how to hide(disable) them.
    

Would someone help me?

Regards,

All replies (3)

Wednesday, July 29, 2015 3:19 AM âś…Answered | 1 vote

The same options introduced from Visual Studio 2013 ULTIMATE version.

Please refer to the post: http://stackoverflow.com/questions/17847927/how-to-hide-reference-counts-in-vs2013

Hope this will help.


Wednesday, July 29, 2015 3:54 AM | 11 votes

https://msdn.microsoft.com/en-us//library/dn269218(v=vs.120).aspx

Q: How do I turn CodeLens off or on? Or choose which indicators to see?

A: You can turn indicators off or on, except for the references indicator. Go to Tools, Options, Text Editor, All Languages, CodeLens.

When the indicators are turned on, you can also open the CodeLens options from the indicators.


Wednesday, July 29, 2015 4:04 AM

Hi Mostafa,

Thank you for the quick reply.
In Visual Studio 2015, I could disable CodeLens(all the sub features in CodeLens) and hide "n references".

Regards,