Today I was trying to use the git mergetool
on the Windows command prompt and realized that it was defaulting to use Vim, which is cool, but I\'d prefe
On top of the excellent existing answer, you should open VS Code in a new window by adding -n
to the command line.
So your git config --global --edit
looks something like this.
[merge]
tool = vscode
[mergetool "vscode"]
cmd = code -n --wait $MERGED
[diff]
tool = vscode
[difftool "vscode"]
cmd = code -n --wait --diff $LOCAL $REMOTE