0

我使用 VS Code 和“git lense”、“git history”、“git graph”扩展。我对很多文件进行了很多更改,但我看不到使用任何这些扩展名的方法来仅在一个窗口中显示我的所有更改。

我知道我可以单击单个文件(diffing使用选定的分支时),但是如何查看diff所有文件?我错过了什么,或者也许有其他扩展可以做到这一点?

4

1 回答 1

1

一个不完全令人满意的答案是:从集成终端运行:

# the '[space][dash]' after 'code' is relevant :
# it tells vscode to write content received on stdin in a tmp file,
# and open that file
git diff | code -

输出将作为.txt文件打开,您还可以将语法荧光笔更改为“diff”模式:

  • Change language mode从命令面板中选择(Ctrl+K M在 linux 上)
  • 在下拉列表中,选择Diff
于 2020-07-17T12:15:04.203 回答