How to disable codelens in VS code?

前端 未结 8 1333
萌比男神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:35

    To specifically disable the references in the C# editor, add this to your User Settings:

    "csharp.referencesCodeLens.enabled": false

    This specifically hides the number of references in the C# editor while keeping the rest of CodeLens' features intact.

    MotKohn also pointed out that you can use javascript.referencesCodeLens.enabled or typescript.referencesCodeLens.enabled below. Make sure you give them some points if that helped!

提交回复
热议问题