本文翻译自:How to hide reference counts in VS2013?

Visual Studio 2013 introduced a new feature where it shows you how many times each of your methods are used. Visual Studio 2013引入了一项新功能,该功能可以向您显示每种方法使用了多少次。

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. 似乎找不到该选项。


#1楼

参考:https://stackoom.com/question/1Ct3n/如何在VS-中隐藏引用计数


#2楼

I guess you probably are running the preview of VS2013 Ultimate, because it is not present in my professional preview. 我想您可能正在运行VS2013 Ultimate的预览版,因为它不在我的专业预览版中。 But looking online I found that the feature is called Code Information Indicators or CodeLens , and can be located under 但是在网上查看时,我发现该功能被称为Code Information IndicatorsCodeLens ,可以位于以下位置

Tools → Options → Text Editor → All Languages → CodeLens 工具→选项→文本编辑器→所有语言→CodeLens

(for RC/final version) (对于RC /最终版)

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: 在Visual Studio 2013 RTM中 ,还可以通过在编辑器中右键单击指示器本身来进入CodeLens选项:

documented in the Q&A section of the msdn CodeLens documentation 在msdn CodeLens文档的“问答”部分中记录


#3楼

Another option is to use mouse, right click on "x reference". 另一个选择是使用鼠标,右键单击“ x参考”。 Context menu "CodeLens Options" will appear, saving all the navigation headache. 将出现上下文菜单“ CodeLens选项”,从而节省了所有导航时间。


#4楼

The other features of CodeLens like: Show Bugs, Show Test Status, etc (other than Show Reference) might be useful. CodeLens的其他功能,例如:显示错误,显示测试状态等(除显示参考之外)可能会很有用。

However, if the only way to disable Show References is to disable CodeLens altogether. 但是,如果禁用“显示引用”的唯一方法是完全禁用CodeLens。

Then, I guess I could do just that. 然后,我想我可以做到这一点。

Furthermore, I would do like I always have, 'right-click on a member and choose Find all References or Ctrl+K, R' 此外,我想像我一直那样,'右键单击一个成员,然后选择“查找所有引用”或“ Ctrl + K,R”

If I wanted to know what references the member -- I too like not having any extra information crammed into my code, like extra white-space. 如果我想知道引用该成员的内容-我也很喜欢没有多余的信息挤在我的代码中,例如多余的空格。

In short, uncheck Codelens... 简而言之,取消选中Codelens ...


#5楼

Workaround.... 解决方法...

In VS 2015 Professional (and probably other versions). 在VS 2015 Professional(可能还有其他版本)中。 Go to Tools / Options / Environment / Fonts and Colours. 转到工具/选项/环境/字体和颜色。 In the "Show Settings For" drop-down, select "CodeLens" Choose the smallest font you can find eg Calibri 6. Change the foreground colour to your editor foreground colour (say "White") Click OK. 在“显示设置为”下拉列表中,选择“ CodeLens”,选择可以找到的最小字体,例如Calibri6。将前景色更改为编辑器前景色(例如“白色”),单击“确定”。


#6楼

In VSCode for Mac (0.10.6) I opened "Preferences -> User Settings" and placed the following code in the settings.json file 在Mac的VSCode(0.10.6)中,我打开了“首选项->用户设置”,并将以下代码放在settings.json文件中

"editor.referenceInfos": false

User and Workspace Settings 用户和工作区设置

如何在VS2013中隐藏引用计数?相关推荐

  1. 如何在VS2013中进行Boost单元测试

    对于如何在VS2013中进行Boost单元测试,这方面资料太少.自己也因此走了不少弯路.下文将会阐述一下如何在VS2013中进行Boost单元测试. 在开始Boost单元测试之前,我们需要先安装VS2 ...

  2. excel公式单元格注释_如何在Excel中隐藏注释,公式,溢出文本和网格线

    excel公式单元格注释 We've shown you how to hide cells, rows, and columns and how to hide worksheets/tabs an ...

  3. 关于oc中自动引用计数 小结

    1.自动引用计数 ARC(Automatic Reference Counting,自动引用计数)极大地减少了Cocoa开发中的常见编程错误:retain跟release不匹配.ARC并不会消除对re ...

  4. CVE-2021-20226:详解 Linux 内核 IO_URING 子系统中的引用计数漏洞

     聚焦源代码安全,网罗国内外最新资讯! 编译:奇安信代码卫士 趋势科技 ZDI 发布文章,详细描述了2020年6月收到的最近引入的 io_uring 子系统的引用计数漏洞情况.该漏洞导致在任意 fil ...

  5. Rust中的引用计数Arc与Rc

    Rc 单线程引用计数.不是线程安全的,如果需要线程间引用计数可用Arc.注意他们之间的实现区别.关键源码实现如下,重点可关注Clone和Drop的实现细节. //! Single-threaded r ...

  6. python引用计数实例_Python中的引用计数法

    [toc] 引用计数法 增量操作 如果对象的引用数量增加,就在该对象的计数器上进行增量操作.在实际中它是由宏Py_INCREF() 执行的. #define Py_INCREF(op) (((PyOb ...

  7. php 5.6 引用传递,升级到5.6.x后如何在php中修复引用传递

    我最近将fom php 5.2升级到5.6,并且有一些代码我无法修复: //Finds users with the same ip- or email-address function find_r ...

  8. 如何在Win10中隐藏一个磁盘盘符

    如果你有一些不希望被访客看见的文件.照片或者视频,希望将它隐藏在一个只有自己知道的地方,那么今天的这篇教程非常适合你.我们要实现的最终效果是这样的:在Win10的"此电脑"中,有这 ...

  9. linux中查看隐藏文件夹_如何在Linux中隐藏图像中的文件或文件夹

    linux中查看隐藏文件夹 If other people use your Linux PC from time to time, you can hide files and folders fr ...

最新文章

  1. wordpress android,WordPress for Android 2.0 试用记
  2. jquery验证框架分装(以后有时间研究拓展)
  3. python----python使用mysql
  4. 均匀白噪声的定义及特点_噪声的物理本质是什么?
  5. html5画分形图形,2.5 绘制透明图形 - HTML5 Canvas 实战
  6. mysql: you can't specify target table 问题解决
  7. 今晚直播丨Oracle数据库之Object的Access方法和结合方法
  8. Intelli IDEA+jdk++maven+tomcat环境配置
  9. mysql单向加密_MariaDB(Mysql)双向加密与单向加密 | 彬菌
  10. 初学FPGA一些建议
  11. 2018达内web全套视频
  12. 百度文库文档 下载券文档 代下载 原格式不变
  13. 继电保护整定值计算软件_通用型继电保护整定计算软件的分析.pdf
  14. 实习生的一点建议和感悟
  15. 【引用】100句经典刺透人心,伤愈后才能更坚强
  16. 网易互娱游戏研发面经及答案
  17. 项目需求--将文件(html格式的字符串)转换为MultipartFile格式的文件然后转调第三方接口
  18. 医疗器械软件测试相关
  19. No valid Maven installation found.
  20. strip()函数用法简介

热门文章

  1. 《构建之法》1、2、3章读后感
  2. 十、RD 虚拟主机配置(三)
  3. 学MFC的九九八十一难
  4. [转]网页不需要漂亮
  5. Spring Boot JDBC 使用教程
  6. Win7系统C盘空间不足
  7. 用postGIS向postgresql插入空间数据
  8. vs2005下,回发或回调参数无效的解决方法
  9. Linux 内核调优
  10. Linux系统修改远程连接22端口