Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Diff Tool in SourceTree

Is it possible to use IntelliJ Diff tool in SourceTree? I know it is accessible from terminal.

Thanks

like image 404
ThanksBro Avatar asked Feb 08 '13 13:02

ThanksBro


People also ask

How do I see git Diff in IntelliJ?

To open the Diff & Merge page, open settings by pressing Ctrl+Alt+S and navigate to Tools | Diff & Merge. Click this button to scroll both differences panes simultaneously.

How do I open an external merge tool in SourceTree?

In Sourcetree for Windows Open Tools/Options/Diff and select and configure the external tools of your choice.

How do I add a Diffmerge in SourceTree?

SourceTree config First, open up the options window and go to Diff tab. Change both External Diff Tool and Merge Tool to Custom. In the Diff Command field enter the full path to the vsdiffmerge.exe. For VS 2015 and below you can find it in the Visual Studio installation folder, under Common7\IDE subfolder.


2 Answers

For OSX android studio i've accomplished with this steps:

Open IntelliJ/Android Studio -> Tools -> Create Command Line Launcher

Something like this:

After that, open SourceTree Preferences: and put "/usr/local/bin/studio" in Diff/Merge Command. Like this:

 Like This:

Diff Arguments:

diff $LOCAL $PWD/$REMOTE 

Merge Arguments:

merge $PWD/$LOCAL $PWD/$REMOTE $PWD/$BASE $PWD/$MERGED 

And if everything it's ok it should work.

like image 75
firetrap Avatar answered Sep 18 '22 14:09

firetrap


Took some time to figure out arguments. Diff command text box should contain path to intellij, like: /Applications/IntelliJ\ IDEA\ 12.app/Contents/MacOS/idea

enter image description here

like image 20
Igor Konoplyanko Avatar answered Sep 16 '22 14:09

Igor Konoplyanko