IntelliJ的”Show history for selection”功能在Visual Studio Code上。

huangapple go评论62阅读模式
英文:

IntelliJ's "Show history for selection" feature on Visual Studio Code

问题

在IntelliJ中,有选中一些代码然后右键点击 -> 'Git' -> 'Show history for selection' 的选项,这将显示所选行发生更改的提交以及所做的更改。

在VS Code中是否有插件或某种方法可以实现相同的功能?

编辑:我只是在询问是否存在一个可以实现这一功能的插件,我不是在问“你认为哪个最好”。如果有一个插件可以完全满足我的需求,那将是答案。

英文:

In IntelliJ there's the option to select some code then right click -> 'Git' -> 'Show history for selection', which will show the commits on which the selected lines did change alongside with the changes made.

Is there a plugin or some way to achieve the same thing in VS Code?

EDIT: I'm only asking if there exists a plugin that does this, I'm not asking for "what you think is best". If there's a single plugin that does exactly what I'm asking for, that would be the answer.

答案1

得分: 0

作为一种方法,您可以单独安装名为:Git History 的插件,

将其应用到 VS Code 中,根据您的需求使用:

链接:
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory

英文:

As one of ways, you can install the plugin separately named as: Git History

apply it inside VS Code and use according to your needs:

<img src="https://raw.githubusercontent.com/DonJayamanne/gitHistoryVSCode/master/images/fileHistoryCommandv3.gif">

Source link:
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory

huangapple
  • 本文由 发表于 2023年2月24日 06:13:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75550860.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定