Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I show reference count in Visual Studio Code?

I want to show references count in Visual Studio Code. How can I do it?

Enter image description here

like image 841
Loint Avatar asked Aug 03 '17 17:08

Loint


People also ask

How do I see the number of references in Visual Studio?

The Find All References command is available on the context (right-click) menu of the element you want to find references to. Or, if you are a keyboard user, press Shift + F12.

How do I turn off reference count in VS Code?

Go to File > Preferences > Settings. Under drop-down Text Editor , search for Code Lens and disable it.

How do you count the number of lines of code in Visual Studio code?

In VS2010 there is a in-built tool that counts all lines of code and other values too: Go to View -> Other Windows -> Code metrics results.

How do I show status bar on VS Code?

Just press the settings icon at the bottom left of your screen. A new tab opens in the editor. Go to workbench then appearance and find the status bar and check the visibility box. Show activity on this post.


1 Answers

This feature is called CodeLens.

In Visual Studio find it in menu OptionsText EditorAll languagesCodeLens.

And in Visual Studio Code it is in menu FilePreferencesSettings → "editor.codeLens": true

like image 181
Ali Avatar answered Sep 25 '22 21:09

Ali