WebStorm as a SourceTree external diff tool

I prefer WebStorm as a diff tool but it doesn't work with SourceTree. I can successfully run a diff from the command line like so:

webstorm.exe diff c:\a.txt c:\b.txt

But setting up a similar thing in SourceTree just results in WebStorm opening and straight away closing - which seems to be the behaviour when it can't find either file. I have the following in the SourceTree Diff settings:

Diff Command: C:\Program Files (x86)\JetBrains\WebStorm 131.130\bin\WebStorm.exe

Arguments: diff $LOCAL $REMOTE

Will $LOCAL and $REMOTE return absolute paths?

Incidentally merge also fails in the same way.

Thanks for any help.


3 answers

I have the same problem.

same here

Diff command:



$PWD/ on the remote path did the trick!
I tested DIFF on OS X Yosemite & latest versions of WS and ST. It should be analogue on Windows.

Please be careful with extra empty spaces. Full path is needed, even if the parent dir is on $PATH

See also: intellij-diff-tool-in-sourcetree

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published 12 hours ago in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

231 views 5 14
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot