如何在 VS2013 中隐藏引用计数? [英] How to hide reference counts in VS2013?

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

问题描述

Visual Studio 2013 引入了一项新功能,它可以显示每种方法的使用次数.

我觉得它不是很有用,而且弄乱了我的文件间距.如何禁用它?似乎无法找到该选项.

解决方案

我猜你可能正在运行 VS2013 Ultimate 的预览版,因为它没有出现在我的专业预览版中.但是在网上看我发现这个功能叫做Code Information Indicators或者CodeLens,可以在

下定位<块引用>

工具 → 选项 → 文本编辑器 → 所有语言 → CodeLens

(RC/最终版)

<块引用>

工具 → 选项 → 文本编辑器 → 所有语言 → 代码信息指示器

(预览版)

这是根据这个

Visual Studio 2013 introduced a new feature where it shows you how many times each of your methods are used.

I don't find it very useful, and it messes up the spacing of my file. How do I disable it? Can't seem to find the option.

解决方案

I guess you probably are running the preview of VS2013 Ultimate, because it is not present in my professional preview. But looking online I found that the feature is called Code Information Indicators or CodeLens, and can be located under

Tools → Options → Text Editor → All Languages → CodeLens

(for RC/final version)

or

Tools → Options → Text Editor → All Languages → Code Information Indicators

(for preview version)

That was according to this link. It seems to be pretty well hidden.

In Visual Studio 2013 RTM, you can also get to the CodeLens options by right clicking the indicators themselves in the editor:

documented in the Q&A section of the msdn CodeLens documentation

这篇关于如何在 VS2013 中隐藏引用计数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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