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
2
votes
1 answer

How can I stop codelenses from breaking up indent guides in VS Code?

I have this visual annoyance when I am using VS Code. Whenever a method or class is declared, the "reference" counting is causing the vertical lines that connects the curly braces to break. It is very annoying, I tried finding the settings in user…
Zenovak
  • 25
  • 4
2
votes
2 answers

Why don't merge conflict decorators appear in vscode?

Strangely, the merge conflict decorators are not appearing in vscode. My "merge conflict > decorators" setting is "enabled", so I am really confused why it is not working. This happened when I installed vscode on my windows computer from scratch.…
2
votes
1 answer

Not showing git info Codelens in visual studio 2022

In my Visual Studio Community 2022, Codelens doesn't show options related to git. Tools > Options > Text Editor > All Languages > CodeLens My visaul studio doesn't have these options. Show Timeline (Git) Show Authors & Changes (Git) Not show this…
2
votes
2 answers

Git merge conflict window doesn't show in VSCode (CodeLens)

I have git version 2.32.0.windows.2, VSCode version 1.68.1 and CodeLens doesn't show up when there are conflicts. Git recognizes the conflicts but VSCode somehow fails to show me the conflict so I can't manage it with CodeLens. The image is not…
2
votes
2 answers

Accept Incoming Change not appearing in VS Code (VS Code Version 1.61.2)

I have a problem, where I don't see the toolbar for merge conflicts in Visual Studio Code even after enabling the editor.codeLens. Any idea what else it can be? I tried to restart VS Code, disabling/enabling editor.codeLens. I even…
Himalaya
  • 21
  • 2
2
votes
0 answers

How to change CodeLens key bindings in VS 2019?

I use more than one machine to do programming work in C#/Visual Studio 2019. All is well except the fact that some key bindings are different. The problem I have is with CodeLens show references popup which by default is activated by Alt + 2…
2
votes
2 answers

set an environment variable when running test from run button in VSCODE

I am creating some tests in Flutter, but I need to set an environment variable before running the tests. Is there a way to set an environment variable when running the app from these "Run | Debug" buttons?
Leonardo da Silva
  • 1,285
  • 2
  • 10
  • 25
2
votes
1 answer

In Visual Studio, make CodeLens "References" counter/list for an Interface method implementation only count THAT implementation

In Visual Studio, we have the CodeLens reference counter above each property/method that tells how many C#/Visual Basic references there are to said member. However, if the member is inside a class, and is an implementation of a member within an…
Sigenes
  • 445
  • 2
  • 13
2
votes
1 answer

P4VS code lens integration shows all file-level changes for each function

(I've looked far and wide but I can't even find anyone having the same problem, not to mention a fix or anything. Closest is this thread which just announces the feature...) The way it currently works for me, the VS2019 code lens integration of P4VS…
Max Langhof
  • 23,383
  • 5
  • 39
  • 72
2
votes
1 answer

Visual Studio 2019 C++ CodeLens

Is there any way to enable CodeLens for C++? Either through extensions or native VS settings. It's specifically this feature for C# I'm talking about
Daniel Everland
  • 90
  • 2
  • 11
2
votes
1 answer

Visual Studio 2017 project reference support between .net standard and .net core

I have a .Net standard 2.0 project in a Visual Studio solution that contains some Azure functions. In the same solution, I've created a .Net Core 2.0 Unit Test project. I've added a project reference from the .Net Core Unit Test project to the…
2
votes
1 answer

CodeLens shows incoming changes from branches / folders deleted from TFS

We had deleted some old unused branches and now CodeLens shows incoming changes from those deleted branches above every single method in our solution. incoming changes We've tried to convert branch to folder and then delete it but with no luck. Also…
kopieczek.dev
  • 706
  • 8
  • 26
2
votes
1 answer

How do I remove Roslyn?

I'm in Visual Studio 2015 and Roslyn just isn't working. The documentation within Visual Studio for Roslyn is non existent and as I'm perfectly happy with resharper at this time I'd like to get Roslyn out of my hair. How to do this?
Keith
  • 363
  • 5
  • 13
2
votes
2 answers

Incorrect codelens references in VS 2013 ultimate

I am not sure if this is by design or need to enable/disable features in VS 2013 ultimate but the reference counts generated by the codelens is completely out of whack. Instead of showing the count of classes/methods directly referencing a…
Stack Undefined
  • 1,050
  • 1
  • 14
  • 23
2
votes
3 answers

Code lens is enabled but referenced are in blank visual studio 2013

Hello there I have enabled CodeLens in visual studio 2013, but referenced are not shown on the methods. they are just showing '-References'
hdkhardik
  • 662
  • 3
  • 22