How to disable codelens in VS code?
You can enable or disable code lense by setting editor.codeLens
to true
or false
in user settings (see https://code.visualstudio.com/Docs/editor/editingevolved#_reference-information for more info).
Update: in the new settings editor of VSCode, it's as simple as typing codelens in the search and ticking the first checkbox in the results:
For me, the setting that fixed it was:
"editor.codeLens": false
in my user preferences json file.