我使用 VS Code 和“git lense”、“git history”、“git graph”扩展。我对很多文件进行了很多更改,但我看不到使用任何这些扩展名的方法来仅在一个窗口中显示我的所有更改。
我知道我可以单击单个文件(diffing
使用选定的分支时),但是如何查看diff
所有文件?我错过了什么,或者也许有其他扩展可以做到这一点?
我使用 VS Code 和“git lense”、“git history”、“git graph”扩展。我对很多文件进行了很多更改,但我看不到使用任何这些扩展名的方法来仅在一个窗口中显示我的所有更改。
我知道我可以单击单个文件(diffing
使用选定的分支时),但是如何查看diff
所有文件?我错过了什么,或者也许有其他扩展可以做到这一点?
一个不完全令人满意的答案是:从集成终端运行:
# 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