4

也请为我 upvote!如果你在使用 vscode 中也遇到这样的烦恼

 2 years ago
source link: https://www.v2ex.com/t/850744
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Visual Studio Code

也请为我 upvote!如果你在使用 vscode 中也遇到这样的烦恼

  mercury233 · mercury233 · 5 小时 1 分钟前 · 735 次点击

在 vscode 中批量替换了大量文件,需要一个个检查,每个文件只需要扫一眼,但 git 界面里要用鼠标一个个点



我的提案:加快捷键,跳转到下一个修改的文件

https://github.com/microsoft/vscode/issues/145009

7 条回复    2022-05-04 15:00:47 +08:00
mercury233

mercury233      5 小时 0 分钟前

@chizuo 借你标题一用(
statumer

statumer      3 小时 46 分钟前 via iPhone

这是不是写个插件就可以解决?
maokwen

maokwen      3 小时 4 分钟前 via iPhone

我觉得更好的解决方法是像 GitHub 那样把所有改动列在一个页面上,只显示改动的几行
mercury233

mercury233      2 小时 10 分钟前

@statumer 不知道 vs 的插件系统能不能实现这个

@maokwen 实际上我这种情况一般是用命令行 git diff 了
ch2

ch2      2 小时 6 分钟前

在终端 git add 不就行了
learningman

learningman      1 小时 46 分钟前

idea 的(切换到下一一个变更行)到了文件末会自动切换到下一个文件,这个做法感觉更好一些
Girlphobia

Girlphobia      1 小时 3 分钟前 via Android

如果不想扫一眼,只想全部添加:
按住 Shift 点击第一个和最后一个,可以选中所有的文件,再点加号,会把所有选中的文件都放入 staged 。
如果还是想扫一眼,我不清楚有没有更好的办法。

使用 JetBrains 系列的 IDE 可以用 F7 在 diff 界面跳转到下一个改动。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK