C# – Visual Studio 2017: Display method references

cvisual studiovisual-studio-2017

How can I display the references on top of a method declaration?
I looked for it in the Visual Studio properties, but could not find it.

Best Answer

In Visual Studio Professional or Enterprise you can enable CodeLens by doing this:

Tools → Options → Text Editor → All Languages → CodeLens

This is not available in some Community Edition versions