codelens

Visual Studio 2015 - CodeLens toggle on/off with keyboard shortcut

别等时光非礼了梦想. 提交于 2021-02-20 05:34:30
问题 I would like to have a quick keyboard shortcut to turn on/off this feature. The feature is useful, but sometimes I want to look only at code and this feature distorts the code visual appearance. I have bound EditorContextMenus.CodeLens.CodeLensOptions to a keyboard shortcut, but this is too slow because the Options menu takes too long to open. I would really like to have shortcut that toggles this feature on and off. How can I do this? Did I miss some option in Environment->Keyboard or is

KARATE, VScode : “Run Karate Test” codelens not displayed

泄露秘密 提交于 2021-02-11 17:44:53
问题 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 scenario. Any idea about this? Thanks a lot. In a correct configuration, it looks like this : 回答1: We are still unable to reproduce this issue. Referencing some searches it appears this may be due to a broader issue such as other plugins Eg. Intellisense.

Is there any CodeLens add-on available that shows the git history of the given method?

流过昼夜 提交于 2021-02-07 13:17:52
问题 The latest version of VS 2019 Community came out with CodeLens enabled. Is there any CodeLens add-on available for VS 2019 Community showing the git history of the given method, like this excellent one for Visual Studio Code : https://github.com/eamodio/vscode-gitlens? 回答1: When I click on the history link of code lens in Enterprise: I see a history listing. I have not added any extensions to get this. (Do ensure "Show Authors & Changes (Git)" is enabled in Options | Text Editor | All

VSCode hide inline git changes in window popup text editor

自作多情 提交于 2021-01-28 07:55:10
问题 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? Edit: I have disabled the codelens setting, but it doesn't resolve my problem. 来源: https://stackoverflow.com/questions/58746387/vscode-hide-inline-git-changes-in-window-popup-text-editor

Code Lens not working properly after interactive rebase

五迷三道 提交于 2020-01-21 04:29:29
问题 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 machines). The same happened after force pushed the corrected repo and pulled to another machine with different version of IDE - VS2013. In Team Explorer I can see all the relevant information and all the other git intergrations functions work fine

CodeLens only finds tests that are written in MSTests

自作多情 提交于 2020-01-14 09:48:10
问题 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 there anything that I have to do so that it can find other Unit tests like MSpec? Is it because Machine Specifications has a different approach when creating unit tests vs MSTest or other testing framework out there? 回答1: The tested by and test

Incorrect codelens references in VS 2013 ultimate

冷暖自知 提交于 2020-01-02 09:21:10
问题 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 particular class/method, it shows the count of everything that has the same name as the class/method in the entire solution. For example, say I have four classes in my solution (doesn't matter four projects with one class in each). using System; using

Visual Studio 2013 feature Code Lens with NUnit

走远了吗. 提交于 2019-12-23 09:39:10
问题 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 working in team and tests statistics so that you know how many tests using the method are passing and how many failing. I assume that this works perfectly with test projects embedded in Visual Studio, but does it work with NUnit? We are using NUnit

How to disable CodeLens' references display in C# [duplicate]

前提是你 提交于 2019-12-22 04:06:32
问题 This question already has answers here : How to turn off CodeLens-References (4 answers) Closed 5 years ago . 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 in where the listed references' count is an annoyance). However, as far I can see, there's nothing about CodeLens under C# specifically. Do

VS2013 - Can code lens appear above method attributes?

≡放荡痞女 提交于 2019-12-22 01:51:35
问题 Visual Studio 2013 introduced a new feature, Code Lens, where it shows you how many times each of your methods are called/referenced, how many unit tests cover the method, and how many are passing. The code lens information appears above the method and below any attributes the method has like so: If the method has a lot of attributes they can appear separate from the method. As proximity in design implies relationship, the attributes can appear to be associated with something else. This is