codelens

Missing CodeLens references count in Visual Studio Community edition 2015 and 2017

戏子无情 提交于 2019-12-17 15:24:39
问题 Is there a reason why the references count (code lens) is missing in Visual Studio Community edition? Is is possible to enable it in the options? Here is a screenshot of Visual Studio 2015 and 2017 Community edition: Here is a screenshot of Visual Studio 2013: source: dailydotnettips.com 回答1: This isn't a generic reference counting feature, it's just one of the features of CodeLens. CodeLens is only available in Visual Studio 2015 Pro and above. In Visual Studio 2013 it was a Ultimate-only

How to get a list of classes with 0 references from CodeLens

混江龙づ霸主 提交于 2019-12-12 12:21:26
问题 I have a very big EF edmx model with over 450 classes/entities. This has grown organically over the last 5 years. With Visual Studio 2013 and the CodeLens feature I have noticed that some classes have 0 references listed. When I do some research I have found that this is true and I can remove that entity from the model. The problem is that I would have to look at all 450 classes in the edmx to see if CodeLens says there are 0 references. Is there any report, export that I can get with

VS 2013 CodeLens

只谈情不闲聊 提交于 2019-12-06 00:53:01
问题 When I open a project from the Visual Studio Team Services (scrum 3 template) I only get the CodeLens reference count. Is this a bug in VS? Why do I not have CodeLens with full TFS versioning Comments, Edited By, etc.? FYI: I have enabled all options in Visual Studio Tools > Options > CodeLens . I also tried the following with no success: Create a new project in Visual Studio Team Services. Disable and re-enable CodeLens . 回答1: There is an update! Currently CodeLens is being developed for

How to disable CodeLens' references display in C# [duplicate]

主宰稳场 提交于 2019-12-05 02:45:09
This question already has an answer here: How to turn off CodeLens-References 4 answers I'm following a certain thread suggesting a certain approach. As the image below shows, one can't disable the feature Show References for all languages. When I discovered that, I tried to do that for C# alone (since that's the only language I code in where the listed references' count is an annoyance). However, as far I can see, there's nothing about CodeLens under C# specifically. Do I need to turn off the whole CodeLens thingy or is there a way to disable aforementioned option only? Show References does a

VS2013 - Can code lens appear above method attributes?

三世轮回 提交于 2019-12-05 01:01:05
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

Display CodeLens above attributes

孤街浪徒 提交于 2019-12-04 16:09:24
问题 It is quite annoying to see codelens reference between the field and field's attributes. It requires to add a lot of additional spaces around to make everything readable. Is it possible to display CodeLens reference above the attributes? 回答1: No, this is currently not possible. If you'd like to see this, I suggest you give the product team a shout-out on the Visual Studio UserVoice and post back the link as a comment to this answer. I'd suggest not to move the code lens information, but to

VS 2013 CodeLens

泪湿孤枕 提交于 2019-12-04 05:20:26
When I open a project from the Visual Studio Team Services (scrum 3 template) I only get the CodeLens reference count. Is this a bug in VS? Why do I not have CodeLens with full TFS versioning Comments, Edited By, etc.? FYI: I have enabled all options in Visual Studio Tools > Options > CodeLens . I also tried the following with no success: Create a new project in Visual Studio Team Services. Disable and re-enable CodeLens . CularBytes There is an update! Currently CodeLens is being developed for Visual Studio Team Services, currently in Public Preview for what I have read so far, in US and West

Display CodeLens above attributes

ぐ巨炮叔叔 提交于 2019-12-03 10:14:22
It is quite annoying to see codelens reference between the field and field's attributes. It requires to add a lot of additional spaces around to make everything readable. Is it possible to display CodeLens reference above the attributes? No, this is currently not possible. If you'd like to see this, I suggest you give the product team a shout-out on the Visual Studio UserVoice and post back the link as a comment to this answer. I'd suggest not to move the code lens information, but to suggest the location to be made configurable :). Though I can't disclose any details, I've seen your feedback

CodeLens only showing references?

本秂侑毒 提交于 2019-12-01 18:44:22
问题 I installed Visual Studio 2015 Enterprise RTM and only seeing "references" from Code Lens. We are using TFS for source control. I expect to see related commits from TFS. Based on this article, I have everything enabled in options: Here is what I see in VS: Is there anything wrong with my VS setup? 回答1: The TFVC lenses that are part of CodeLens only work when connected to a version of Team Foundation Server that is running the background job that generates the historical data. This means that

Code Lens not working properly after interactive rebase

风格不统一 提交于 2019-11-30 19:05:38
In VS2015 all the code metadata from git displayed in the code via the CodeLens functionality regarding the author and changes disappeared after I did git rebase -i and ammended commits to correct the author name (a typo in git configs in one of my machines). The same happened after force pushed the corrected repo and pulled to another machine with different version of IDE - VS2013. In Team Explorer I can see all the relevant information and all the other git intergrations functions work fine as well. What can cause this? What can I do to fix this issue? Seems like the latest updates solves