Skip to content

Instantly share code, notes, and snippets.

@germanviscuso
Created May 13, 2019 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save germanviscuso/df15d8f1787c91f0b4051cd23e3708fa to your computer and use it in GitHub Desktop.
Save germanviscuso/df15d8f1787c91f0b4051cd23e3708fa to your computer and use it in GitHub Desktop.
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