Visual Studio代码 - 打开所有修改的文件

发布于 2025-01-26 14:17:02 字数 226 浏览 5 评论 0原文

有没有办法打开所有修改的文件,例如所有跟踪的文件,这些文件在我执行git状态之后显示?

Is there a way to open all files which are modified e.g. all tracked files which are showing after I execute git status?

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离鸿 2025-02-02 14:17:02

我必须从外壳执行此命令:

code $(git diff --no-commit-id --name-only -r HEAD)

但是,这打开了VSC的新实例。使用-r如果您想在已经打开的实例上打开它:

code $(git diff --no-commit-id --name-only -r HEAD) -r

-r-备用窗口力量在已经打开的窗口中打开文件或文件夹。

I had to execute this command from a shell:

code $(git diff --no-commit-id --name-only -r HEAD)

However, this opens a new instance of VSC. Use -r if you like to open it on an already open instance:

code $(git diff --no-commit-id --name-only -r HEAD) -r

-r --reuse-window Force to open a file or folder in an already opened window.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文