how to remove reference count in vscode

Viewed 3698

How to remove the reference count in vscode?

reference count

2 Answers

If you only need to disable code references for C#, you can do this by using vs code settings or by changing the user settings file.

  1. Via VS Code settings: Go to File > Preferences > Settings and search for "csharp.referencesCodeLens.enabled" and make sure its unchecked.

enter image description here

  1. Editing the settings file: Go to your user settings file which is in following path:

    %UserProfile%\AppData\Roaming\Code\User\settings.json

Edit following attribute to false to disable code reference count:

"csharp.referencesCodeLens.enabled": false

Vue.js have this too in the Volar extension, if u want to disable, you can just add this line on your settings.json:

  "volar.codeLens.references": false

Or search for it on settings menu instead :)

Related