How to turn off CodeLens-References

后端 未结 4 1261
猫巷女王i
猫巷女王i 2020-11-28 02:58

I recently installed Visual Studio 2013 Ultimate. Now, as you know, there is this \"n references\" above all methods.

When I go to the CodeLens options, I can\'t di

4条回答
  •  佛祖请我去吃肉
    2020-11-28 03:40

    If you want to keep the CodeLens functionality but mostly get rid of the references, go to:

    • Options/Environment/Fonts and Colors
    • Show settings for: CodeLens

    and change the settings to:

    • Font: Consolas
    • Font Size: 6
    • Indicator Text: White
    • Indicator Text (Disabled): White
    • Indicator Separator: White

    Choosing Consolas reduces the line height beyond the default Calibri font, even at font size 6. There might even be a smaller font that you can use but I haven't found it.

    If you have a dark background choose a matching dark color instead of White where it is mentioned in the steps above, since the goal is to hide the CodeLense text.

提交回复
热议问题