Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove reference count in vscode

How to remove the reference count in vscode?

reference count

like image 338
Luke Avatar asked Mar 19 '26 07:03

Luke


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
like image 196
Rukshán Dikovita Avatar answered Mar 21 '26 23:03

Rukshán Dikovita


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

like image 43
Thiago Silva Lopes Avatar answered Mar 21 '26 22:03

Thiago Silva Lopes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!