本文介绍了有没有可用的CodeLens附加组件来显示给定方法的git历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新版本的 VS 2019社区启用了CodeLens. VS 2019社区是否有任何CodeLens附加组件可显示给定方法的git历史记录,例如适用于 Visual Studio Code 的出色方法:

我看到一个历史记录列表.我没有添加任何扩展来获得此功能.(确保在选项" |文本编辑器" |所有语言" |代码镜头"中启用显示作者和更改(Git)".)

以前,当将Code Lens添加到Professional时,它具有完整的功能,我认为这同样适用于Community.

编辑

事实证明,Community Edition具有简化的代码范围:

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

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?

解决方案

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:

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

这篇关于有没有可用的CodeLens附加组件来显示给定方法的git历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 17:52