CodeLens in VS code

While the developing, especially while the code cleaning, you often want to know if your method is used or not. It’s usually when you make some temporary methods to determine the optimal one. Visual Studio shows the reference count by default, but Visual Studio Code doesn’t do that. But it’s very useful. Here is how to turn it on.

This feature is called ‘codelens’. I turn it on only for the specific languages, for example. TypeScript.
Open menu File > Preferences > Settings, in the search panel enter ‘codelense’ and check the specific checkboxes. I wanted to use codelense only for TypeScript and I did it only for it. It’s better to make it in both tabs – User and Workspace. Then restart VS code.

Turn on CodeLens in VS Code

Yandex.RTB R-A-454402-1