I have configured my Git difftool to be VS Code:
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --new-window --diff $LOCAL $REMOTE
prompt = false
This works fine, but when there are multiple files to diff, they get opened one by one (VS Code launches with a single file diff, I close VS Code, the next file diff opens, etc).
Is there a way to configure Git so that all diffs are opened at once in the same VS Code instance?
The Git icon on the left will always indicate an overview of how many changes you currently have in your repository. Clicking it will show you the details of your current repository changes: unstaged, staged and unresolved conflicting merge changes.
Install the folder comparison extension for vscode: https://marketplace.visualstudio.com/items?itemName=moshfeu.compare-folders
Configure Vscode as the git difftool. Add this to ~/.gitconfig
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --new-window --diff $LOCAL $REMOTE
COMPARE_FOLDERS=DIFF git difftool --dir-diff commit1_SHA commit2_SHA
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With