References Visual Studio Code

Asked

Viewed 821 times

1

From a while to here Visual Studio Code gave an updated and since then for each variable I create appears this "0 References" on top, and it turned out to be something pretty polluting to my eye.

Does anyone know how to remove this option?

public float speed;
public float jumpForce;
private Rigidbody2D rb;
private Animator anim;
  • 2

    but do not turn off, you will get used to this and other tips in your code and will realize the advantage of having this information always in sight.

1 answer

3

This feature is called Codelens.

To disable it in the Visual Studio Code access the menu File > Preferences > Settings > "editor.codeLens": false

That answer was copied from here:
How do I show Reference Count in Visual Studio Code? - Stack Overflow

You can also just type codelens in the box of search from the settings editor:
vscode Settings - How to disable codelens in VS code? - Stack Overflow

Complementing, in the Visual Studio the path is menu Options > Text Editor > All Languages > Enable Codelens.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.