How do I show the reference count in Visual Studio Code?

I want to show the number of links in Visual Studio Code. How can i do this?

Enter image description here

+13


source to share


3 answers


This feature is called CodeLens.

In Visual Studio, find it under Options β†’ Text Editor β†’ All Languages ​​→ CodeLens.



And in Visual Studio Code this is in File β†’ Preferences β†’ Preferences β†’ "editor.codeLens": true

+31


source


Visual Studio Code version 1.28.2:

You must add this to your user settings:



Menu file -> Preferences -> Preferences:

"typescript.referencesCodeLens.enabled": true,

      

+15


source


In Visual Studio 2019, Community is in Tools -> Options -> Text Editor -> All Languages ​​-> CodeLens.

0


source







All Articles