Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>DiffToolNew to Visual Studio Code? Get it now.
DiffTool

DiffTool

Gong Xiao

|
5,806 installs
| (0) | Free
Just launch git difftools & Mergetool for resolve merge conflict
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DiffTool for Visual Studio Code

Visual Studio Code extension for running difftool, git difftool and git mergetools to resolve merge conflict.

This project is forked from GitDiffer.

Some tips

  • Aghabeiki has tried to use other extension but it didn't fit, so he created GitDiffer.
  • I also want to use other diff tools in vscode explorer.
  • tested on macOS Mojave.
  • for running difftools, use explorer in vscode, select two or three files, right click and select "Launch Difftool for ..."
  • for running git difftools, use source control toolbox in vscode, right click on file and select "Launch Difftool for ..."
  • for running git mergetool, use source control toolbox in vscode, beside the title menu (...), select the "Launch Mergetool" or simple open the command plate and run "Launch Mergetool"

Installation Steps

  • First install diffmerge or any other alternatives.

  • Add this configuration to your git global config :

    git config --global diff.tool diffmerge
    git config --global difftool.diffmerge.cmd diffmerge "$LOCAL" "$REMOTE"
    git config --global merge.tool diffmerge
    git config --global mergetool.diffmerge.cmd diffmerge --merge --result="$MERGED" "$LOCAL" "$(if test -f "$BASE"; then echo "$BASE"; else echo "$LOCAL"; fi)" "$REMOTE"
    git config --global mergetool.diffmerge.trustexitcode true
    
  • install the extension.

Final note

  • This extension should work with other diffmerge tools.
  • git configurations depends on the used tools.

TODOs

  • add OpenEditorsContext/openEditorsFocus support
  • add operation demo GIF

Bug Reports
Repo

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft