WebStorm.app (Toolbox) Mac integration with Tower.app for diff and merge
- Add
CompareTools.plist
andwebstorm-toolbox.sh
files in the~/Library/Application Support/com.fournova.Tower3/CompareTools/
directory. You may need tomkdir ~/Library/Application\ Support/com.fournova.Tower3/CompareTools
if the folder does not already exist - Update the
webstorm-toolbox.sh
to use your username for the /Users/yourusername/ path and the correct version number (WebStorm > About > Build #WS-XXX.XXXXX.XX where XXX.XXXXX.XX is the version number to use). - Run
chmod +x ~/Library/Application\ Support/com.fournova.Tower3/CompareTools/webstorm-toolbox.sh
- Go into Tower.app Preference > Git Config > Select "WebStorm (Toolbox)" for "Diff tool" and "Compare tool", you can optionally enable "Perform directory diff"
- PhpStorm (Standalone): https://gist.github.com/sc0ttkclark/213fe88f9eacbd5ae58a
- PhpStorm (Toolbox): https://gist.github.com/sc0ttkclark/660655fea6916cd41bdc46c4fdb0d033
- WebStorm (Standalone): https://gist.github.com/sc0ttkclark/07f293e092fbb04d57dac0c2ed61c033
- WebStorm (Toolbox): https://gist.github.com/sc0ttkclark/9e2529cb54edf9f7d316a07d7c2625e3
While I went and figured out how to do all of this, this integration is based on the one I found for Beyond Compare's beta integration: https://github.com/tednaleid/git-tower-beyond-compare-shim
If I had more time, I would make this handle more dynamically like https://github.com/vdmorozov/mac-jetbrains-sudo-launcher/blob/master/mac-jb-sudo.applescript does. Unfortunately right now it requires you specify the username and version number manually due to how Toolbox installs the app.