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
1
vote
1 answer

Show references lens of a property or method in typescript, like in visual studio 2015

I've started angular2 (using typescript) project in visual studio code. The project is big and sometimes I find it hard to remember where a certain function or class is called. I'm used to develop in visual studio 2015, with the use of the…
Carlo Luther
  • 2,402
  • 7
  • 46
  • 75
1
vote
0 answers

Visual Studio 2015 Code Lens References Web Site Project

After a few days of searching I have not found any documentation to say if this is proper operation or if something is not working correctly with my VS 2015 installation. I have a solution that contains 2 DLLs and a website. The website is…
Feuerwehrmann
  • 151
  • 12
1
vote
1 answer

Is it possible to have Codelens in Razor Pages?

I would like to view "Git changes", "authors" and "work items" through codelens in .cshtml files. Any way to enable them? Settings didn't help.
Jude
  • 2,353
  • 10
  • 46
  • 70
1
vote
1 answer

Is it possible to modify and extend CodeLens by a VS 2013 Plugin?

And if so - how? And if not - are there any news on whether or not and when it will be open for modification?
mYnDstrEAm
  • 751
  • 2
  • 8
  • 26
1
vote
3 answers

Is there a way to make VS pro insert a dummy code lens?

We have a mix of VS 2013 Ultimate & Pro in our project. That leads to a problem: When writing with Ultimate we have stopped adding empty lines between properties & methods because the code lens inserts ~empty rows~ (see pic). The problem is that it…
Johan Larsson
  • 17,112
  • 9
  • 74
  • 88
1
vote
1 answer

Get CodeLens indicators for work done prior to upgrade to TFS 2013

We have recently upgraded from TFS 2012 to 2013. One of the new features in Visual Studio 2013 is the CodeLens or Code Indicators which can pull associated work item, changeset and test impact data from TFS for many members in code (classes,…
CodeWarrior
  • 7,388
  • 7
  • 51
  • 78
0
votes
2 answers

Codelens not showing variable references

I updated to Visual Studio Code 1.81 and after doing so Codelens has stopped showing references to variables within code. It still operates normally for Classes, Methods, seemingly everything except for variables. [EDIT] It also displays references…
Anodomani
  • 1
  • 2
0
votes
0 answers

Is it possible to show the property reference count in Typescript Types the same way they are shown in Interfaces in VSCode?

When interfaces are shown in VSCode I am able to see the number of references of every single property of the interface. But if I convert that interface into a Type, the references are not shown anymore. The same problem occurs with every Type,…
artberri
  • 1,327
  • 13
  • 26
0
votes
0 answers

CodeLens & Find All References don't work in VS Code if files are closed

I use standart VS code with few themes extensions and Prettier + IntelliCode and when I try to find a Reference or Implementation of any class or function - it just don't work. I have file main.js and car.js and if I try to find reference of car…
0
votes
0 answers

Can VS Code show Code Lens References on Non-Exported functions?

Hello I am trying to see if there is a way to make code lens work on on functions that are not exported. As you can see in the picture anything I mark with export has references, which I know its because its being used. The function LicenseRequest…
JustBarnt
  • 104
  • 9
0
votes
0 answers

Visual Studio Codelens for methods invoked by reflection

Codelens in Visual Studio is great, but I've inherited a code base where some methods are invoked via reflection. This is a simplified sample. ... if (method.Name.EndsWith("UpdatePlatformModel"); method.Invoke(element, parameters) ... In the…
Charlie P
  • 51
  • 2
  • 8
0
votes
1 answer

How to remove the inline references in Visual Studio

Good day I am looking to remove the inline references in my code as it clutters the code and provides no functionality that I need. I have tried going to: Tools, Options, Text Editor, All Languages, CodeLens and disabling code lens, but the…
Misha
  • 556
  • 1
  • 8
  • 25
0
votes
1 answer

Codelens disabled on last displayed file only but working fine on all other files of the C# project

VS Community 2019 v16.8.5. C# Whenever VS 2019 starts and loads the last project, Codelens always not shown on the last displayed file alone. It is just blank, nothing, not even "references" or anything. When I click on ALL other files, Codelens are…
Formless
  • 157
  • 1
  • 3
0
votes
1 answer

Code Lens does not display the name of the person last edited

I'm using: Microsoft Visual Studio Community 2019, Version 16.6.5 and Git that connect to AzureDevops as source control. For some reason, the Code Lens feature does not show me the last person who updated the method. Here is what I see: Any…
dev.e.loper
  • 35,446
  • 76
  • 161
  • 247
0
votes
1 answer

KARATE, VScode : "Run Karate Test" codelens not displayed

Visual Studio Code 1.43.0 Karate Standalone JAR 0.9.5.RC5 In the VScode editor, in a Karate .feature file opened, the codelens "Run Karate Test", as shown in the screenshot, isn't displayed anymore. So, it is impossible to debug a specific…
J-Marc
  • 29
  • 3