VS2013 - Can code lens appear above method attributes?

≡放荡痞女 提交于 2019-12-22 01:51:35

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/20389267/vs2013-can-code-lens-appear-above-method-attributes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!