Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

WebStorm as a SourceTree external diff tool

timneil September 22, 2013

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.

Tim

3 answers

1 vote
ricardo February 4, 2016

Diff command:

/Applications/WebStorm.app/Contents/MacOS/webstorm

Arguments: 

diff $LOCAL $PWD/$REMOTE
$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

0 votes
mrcybermac February 24, 2015

same here

0 votes
mstocki August 26, 2014

I have the same problem.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events