How to disable codelens in VS code?

前端 未结 8 1287
萌比男神i
萌比男神i 2020-12-24 03:53

I\'ve searched but didn\'t find any info on how to disable references (or the codelens completely) in the Visual Studio Code, they\'re quite useless and annoying for me.

相关标签:
8条回答
  • 2020-12-24 04:54

    You can enable or disable code lense by setting the editor.codeLens setting in user settings (see https://code.visualstudio.com/Docs/editor/editingevolved#_reference-information for more info).

    0 讨论(0)
  • 2020-12-24 04:57

    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.

    0 讨论(0)
提交回复
热议问题