VS2013 - 代码镜头可以出现在方法属性上方吗? [英] VS2013 - Can code lens appear above method attributes?

查看:22
本文介绍了VS2013 - 代码镜头可以出现在方法属性上方吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2013 引入了一项新功能 Code Lens,它可以显示每个方法被调用/引用的次数、覆盖该方法的单元测试数量以及通过的单元测试数量.代码镜头信息显示在方法上方和方法具有的任何属性下方,如下所示:

Visual Studio 2013 introduced a new feature, Code Lens, where it shows you how many times each of your methods are called/referenced, how many unit tests cover the method, and how many are passing. The code lens information appears above the method and below any attributes the method has like so:

如果方法有很多属性,它们可以与方法分开出现.由于设计中的接近性意味着关系,属性可能看起来与其他事物相关联.如果您习惯于没有换行符分隔方法,则尤其如此.无论如何移动代码镜头功能使其出现在方法属性上方?

If the method has a lot of attributes they can appear separate from the method. As proximity in design implies relationship, the attributes can appear to be associated with something else. This is especially the case if you are accustomed to not having line breaks separating methods. Is there anyway to move the code lens feature so it appears above the method attributes?

推荐答案

目前不支持.但已向微软提出要求.请参阅下面的连接报告.

This is currently not supported. But has been requested from Microsoft. See the connect report below.

http://connect.microsoft.com/VisualStudio/feedback/details/810015/display-codelens-above-attributes-if-any-present

这篇关于VS2013 - 代码镜头可以出现在方法属性上方吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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