Questions tagged [codelens]

CodeLens is a code editor enhancement of Microsoft Visual Studio 2013 Ultimate and 2015 Professional and up to show code changes, references, bugs, work items and code review requests.

CodeLens is a code editor enhancement of Microsoft Visual Studio 2013 Ultimate and 2015 Professional and up to show code changes, references, bugs, work items and code review requests. For more info refer: https://learn.microsoft.com/en-us/visualstudio/ide/find-code-changes-and-other-history-with-codelens

114 questions
9
votes
1 answer

Code Lens not working properly after interactive rebase

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…
Peuczynski
  • 4,591
  • 1
  • 19
  • 33
9
votes
1 answer

How to disable CodeLens' references display in C#

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…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
8
votes
0 answers

Visual Studio C# Code Lens - why are references listed for properties but not fields?

In Visual Studio 2017 Enterprise, I noticed that for any class properties (w/ get/set), the Code Lens lists the number of references right above the property. But for class fields, this is not true. Here's a screen shot: Does anyone know why? Or…
jbyrd
  • 5,287
  • 7
  • 52
  • 86
8
votes
2 answers

How can I save the contents of the "CodeLens References" window to a file in Visual Studio 2015?

The is a pretty neat window showing you what references your class, the "CodeLens References" Window. You get it by clicking in the references link that appears above your class name and selecting "Dock Popup" icon. It looks like: Now how do I save…
VinceJS
  • 1,254
  • 3
  • 18
  • 38
7
votes
3 answers

Visual Studio 2015 codelens issues when using Typescript

I'm using Visual Studio 2015 Enterprise RTM. When creating an ASP.net 4.6 web application using the Web Api template, I noticed as soon as I add a TypeScript file, the codelens indicators stop working. I tested this on a new installation, with no…
6
votes
1 answer

How can I disable the popup window that appears when I click on a SCM diff decoration in the editor gutter?

In Visual Studio Code I wish to permanently hide the window that pops up with an inline diff in my text editor. It appears after clicking on the blue bar next to the line numbers. Is there a setting to disable this? I have disabled the codelens…
Bert
  • 319
  • 4
  • 10
6
votes
1 answer

Prevent Visual Studio from counting references of certain methods

In Visual Studio 2013 Ultimate, Microsoft introduced a feature named CodeLens. A handy feature which (among others) has the ability to count the number of times a method is referenced in your project. At the moment we're using VS2015 Pro and I'm…
Baksteen
  • 1,235
  • 11
  • 25
6
votes
1 answer

CodeLens only showing references?

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…
Victor Zakharov
  • 25,801
  • 18
  • 85
  • 151
6
votes
2 answers

Visual Studio 2013 feature Code Lens with NUnit

In the new Visual Studio 2013 there is a nice new feature called Code Lens (I think that it is only in the Ultimate version). Regarding methods, besides it shows references (how many and where) it also shows some information about versioning when…
Ondrej Janacek
  • 12,486
  • 14
  • 59
  • 93
6
votes
3 answers

VS 2013 CodeLens

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…
Peter M.
  • 1,028
  • 2
  • 10
  • 27
5
votes
0 answers

Visual Studio 2019 Codelens always shows - 0 Authors 0 Changes when using git as Source Control

I am using Visual Studio 2019 specifically, Microsoft Visual Studio Professional 2019 Version 16.8.3 VisualStudio.16.Release/16.8.3+30804.86 Microsoft .NET Framework Version 4.8.04084 Installed Version: Professional I have my code being tracked my…
tHeSiD
  • 4,587
  • 4
  • 29
  • 49
5
votes
1 answer

Change the font size in Visual Studio

What is this font in the Visual Studio options? I changed the general font to Consolas 6, and I had all other fonts updated automatically, but this one of the comments that remain still too huge. How can I update it manually? Bellow is the my…
serge
  • 13,940
  • 35
  • 121
  • 205
5
votes
1 answer

Is it possible to create a custom CodeLens adornment?

Is there an ability to create your own adornment that can be displayed via CodeLens? I did a quick search on the web but found nothing to indicate that creating custom CodeLens items is available. Is that the case?
Jason Evans
  • 28,906
  • 14
  • 90
  • 154
5
votes
1 answer

Visual Studio 2015 Method Info

I was using Visual Studio 2015 RC for a while and one of the handy features was a line of text above each method/class definition that had info about the method or class (number of references, date of last edit, name of last editor). But I just…
Seth
  • 706
  • 4
  • 20
5
votes
2 answers

CodeLens only finds tests that are written in MSTests

I recently installed Visual Studio 2013 and CodeLens is amazing! The problem that I find is that whenever I open a class file that has methods in it, it doesn't seem to find the Unit Tests associated to the method if it is not written in MSTest. Is…
123 456 789 0
  • 10,565
  • 4
  • 43
  • 72