Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use VS Code as diff tool, git diff tool and git editor

code --diff file1.cs file2.cs

git config --global diff.tool vscode git config --global difftool.vscode.cmd "code --wait --diff $LOCAL $REMOTE"

git config --global core.editor "code --wait"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.