122 questions
Score of 0
0 answers
109 views
Visual Studio modifies .csproj files on branch switch (possible .editorconfig / Code Cleanup issue)
I added an .editorconfig file to the solution. The linter is CodeLens, the analyzer is SonarQube, and Code Cleanup automatically applies rules (profile 2). After some time, other developers started ...
Score of 0
0 answers
50 views
Options for VS Code's built-in CodeLens feature. I want to see the reference numbers but not vertical lines
I am currently using VS Code (version 1.105.1), and I have noticed an annoying detail. I switched my IDE from Visual Studio 2022 to VS Code while working on a C# project. However, I noticed a ...
Score of 0
0 answers
51 views
VisualStudio 2022 CodeLens show references changed by itself
I've just noticed that my alt+2 hotkey for opening CodeLens show references window I've been using for years changed to alt+3. This happened only on my PC, on my laptop it's still on alt+2. There is ...
Score of 1
0 answers
58 views
Visual Studio Professional & Community 2022 - CodeLens - JavaScript - Not showing on async Functions
I am seeing an issue with Visual Studio 2022 Pro and Community Version 17.14.0
See screen shot, CodeLens is showing that there is "1 references" for the "Testing" function, but for ...
Score of 0
1 answer
89 views
How to stop CodeLens from opening a window
When editing C# in Visual Studio, I'm used to seeing something like this when I click on the CodeLens 1 reference link.
I often use this to navigate to the caller of a method.
Recently though, I ...
Score of 0
1 answer
661 views
CodeLens doesnt show all references
VS Studio 22: Code lens and "find all references" for some reasons display only references within the current project for public properties of the class. ReShaper "find usages" ...
Score of 2
0 answers
33 views
Visual Studio: Can we show references count on field initialization? [duplicate]
Visual Studio 2022 Version17.8.6
The screenshot shows that references count show on method, class, property initialization.
Can we show references count on field initialization?
If yes, how to do ...
Score of 2
1 answer
770 views
(WSL2 VSCode) Go CodeLens not showing run test | debug test
I've been trying to learn Golang backend development and have been following this Youtube guide
https://www.youtube.com/playlist?list=PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE
But when learning about writing ...
Score of 1
1 answer
719 views
CodeLens no longer allowing me to show references
After the latest VS update (Version 17.8.0), I can no longer view references in Visual Studio through CodeLens. The option is no longer there in CodeLens either.
Score of 0
2 answers
1062 views
Codelens not showing variable references [duplicate]
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 ...
Score of 1
2 answers
626 views
Visual Studio Code codelens doesn't work on variables
I'm developing an game with c# unity and I'm using Visual Studio Code as IDE. However the codelens doesn't work on variables - only properties, classes.. etc at some point as shown in the screenshot:
...
Score of 3
1 answer
245 views
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.
...
Score of 1
0 answers
441 views
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 ...
Score of 0
0 answers
81 views
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&...
Score of 1
0 answers
77 views
How to enable codelens for merging
I recently got a new device and have been playing around with git and tried to merge two branches, but vscode's codelens doesn't seem to show the usual "accept current change accept incoming ...