Visual Studio Code: Use Beyond Compare diff tool

Ash picture Ash · Jun 13, 2017 · Viewed 11.4k times · Source

The default diff tool of Visual Studio Code is nice, but I'd like to replace it with my beloved Beyond Compare.

It's easy to configure in Visual Studio 2017. It's also configured as the git difftool.

I assumed there should be an extension for Beyond Compare, but I couldn't find one. Also google only delivered results concerning the full VS IDE, but nothing to VSC.

Any suggestions?

Answer

allenyllee picture allenyllee · Sep 29, 2017

Try this extension:

GitDiffer - Visual Studio Marketplace

It works for me on Windows 10, here is my .gitconfig settings

[difftool "sourcetree"]
    cmd = 'C:/Program Files/Beyond Compare 4/BComp.exe' \"$LOCAL\" \"$REMOTE\"
[mergetool "sourcetree"]
    cmd = 'C:/Program Files/Beyond Compare 4/BComp.exe' \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
    trustExitCode = true
[merge]
    tool = sourcetree
[diff]
    guitool = sourcetree