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
4
votes
0 answers

VS2017 15.8.1 - ServiceHub.RoslynCodeAnalysisService32.exe high CPU - CodeLens disabled

Even though full solution analysis and codelens is disabled, the process ServiceHub.RoslynCodeAnalysisService32.exe spikes on CPU usage during input. If I suspend the process through Windows Resource Monitor, VS input gets more responsive. What is…
4
votes
1 answer

Using CodeLens for JavaScript in VSCode

I'm trying to get CodeLens working for a JavaScript project in VSCode. I've seen multiple sources indicate that this should work, but nothing with clear instructions on how to enable it besides the basic settings. I have the following files in my…
TheJim01
  • 8,411
  • 1
  • 30
  • 54
4
votes
1 answer

How to stop Visual Studio from inserting blank ineditable lines into my code

Visual Studio is inserting blank ineditable lines into my code files around braces and class/function declarations: How can I remove the blank ineditable line after lines 13 and 17?
4
votes
1 answer

Visual Studio Xamarin Intellisense Not Working

While using Visual Studio 2015 with the latest updates, Intellisense and CodeLens do not work properly. Syntax highlighting, code completion, and property/method references (not sure the exact name for this) are shown very inconsistently, or not at…
4
votes
0 answers

Visual Studio 2013 CodeLens Authors not Showing Up

I am using Visual Studio 2013 Ultimate with Git, and I have CodeLens enabled so that I can see references, authors, changes.. etc. The problem is that the only thing that is showing up is the references. I went to Tools > Options > Text Editor >…
JackOrJones
  • 304
  • 1
  • 6
  • 15
4
votes
1 answer

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

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…
3
votes
1 answer

Unable to see vsts work items in code lens: Unable to determine the team project collection

I'm getting following error: I've double checked that I added my work account to visual studio, which I use also for VSTS access: Why I'm getting this error?
Liero
  • 25,216
  • 29
  • 151
  • 297
3
votes
2 answers

Visual Studio 2017 Enterprise xUnit not showing CodeLens for tests

I have VS2017 Enterprise, I develop .NET Core apps and use xUnit for testing. But I don't see CodeLens enabled for any of my tests. I checked CodeLens settings, everything is turned on. Is this an known issue or am I missing something?
Ray
  • 12,101
  • 27
  • 95
  • 137
3
votes
1 answer

Excluding xmldoc references from showing up in CodeLens?

Is there a way to prevent CodeLens from picking up on class references made in xmldoc comments? I like that the cref tags make sure the spelling is correct, provide clickable links in the documentation, are picked up by refactoring etc., but I feel…
Bio2hazard
  • 150
  • 3
  • 10
3
votes
1 answer

CodeLens references shortcut doesn't work

I have CodeLens enabled in my IDE, but for some reason, the [Alt] + 2 shortcut doesn't work anymore. When using [Alt] + 2 (that should give me the list of references) this is shown instead: I have verified that no other function is using [Alt] + 2
thomas
  • 1,399
  • 1
  • 17
  • 32
3
votes
1 answer

Codelens Visual Studio 2015 community

How does one get around having codelens on Visual Studio 2015 Community Edition On one of my devices I have it working on Visual Studio 2015 CE (I have no idea how I got it on that installation). Yesterday, I installed Visual Studio 2015 on another…
MRainzo
  • 3,800
  • 2
  • 16
  • 25
3
votes
0 answers

Getting CodeLens to work with GitHub projects

I'm working with a small GitHub repo (mostly just playing around) but I've noticed that CodeLens features (save references) don't seem to be working with my GitHub repo: There are definitely changes as indicated by: Am I missing a configuration…
Kritner
  • 13,557
  • 10
  • 46
  • 72
3
votes
3 answers

VS2015 CodeLens is missing

Somehow CodeLens doesn't work correctly. It only shows -references. It was working fine before. I checked the Options -> Text Editor -> All Language -> CodeLens All options are checked. Anyone see this before ? Thanks
maxisam
  • 21,975
  • 9
  • 75
  • 84
3
votes
0 answers

Codelens not working with Git submodules in VS 2013/2015

It seems to me as the Microsoft Git Provider is not working flawlessly. I noticed that I do not get any information on author and changes in Codelens in some of my solution's projects. These projects happen to be git submodules, so I suspect the…
Peter Brennan
  • 1,366
  • 12
  • 28
3
votes
3 answers

Enable Codelens on VisualStudio.com

I hosted my TFS on visualstudio.com but I can't seems to find the tfsconfig on my local machine and unable to enable codeindex from the web interface. Anyone has similar issue?
drhanlau
  • 2,517
  • 2
  • 24
  • 42