英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论