10

How to remove the reference count in vscode?

reference count

rioV8
  • 24,506
  • 3
  • 32
  • 49
Luke
  • 1,623
  • 3
  • 24
  • 32

2 Answers2

29

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
Olivier Jacot-Descombes
  • 104,806
  • 13
  • 138
  • 188
3

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 :)