visual-studio-code

Method References in VsCode


Is there a way or plugin to display the references on top of a method declarations in VsCode? Something similar to Visual Studio reference display?


Solution

  • This feature is called a code lens and must be implemented per-language by extensions.

    VS Code's built-in JavaScript and TypeScript extension includes support. To enable this, just set:

    The C# extension enables references code lenses by default. The setting for this is: