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 Languages | Code Lens.)

Previously when Code Lens was added to Professional it was added with full functionality, I have assumed the same applies to Community.

Edit

It turns out that Community Edition has a reduced code lens:

The source control CodeLens indicators are not available in Visual Studio Community edition.

From https://docs.microsoft.com/en-gb/visualstudio/ide/find-code-changes-and-other-history-with-codelens?view=vs-2019.



来源:https://stackoverflow.com/questions/55610991/is-there-any-codelens-add-on-available-that-shows-the-git-history-of-the-given-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!