如何在 VS 代码中禁用 codelens? [英] How to disable codelens in VS code?

查看:33
本文介绍了如何在 VS 代码中禁用 codelens?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经搜索过但没有找到有关如何在 Visual Studio Code 中禁用引用(或完全禁用 codelens)的任何信息,它们对我来说非常无用且令人讨厌.

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.

推荐答案

更新:在 VSCode 的新设置编辑器中,就像在搜索中键入 codelens 并在结果中勾选第一个复选框一样简单:

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

在我的用户首选项 json 文件中.

in my user preferences json file.

这篇关于如何在 VS 代码中禁用 codelens?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆