How to open a directory in PHPStorm or IntelliJ (or any JetBrains IDE) from the command line?
Use Tools -> Create command line launcher
and then you can execute pstorm .
Here's how I got IntelliJ Command-line launcher to work with MAC Sierra (v 10.12.2).
This works with IntelliJ IDEA:
- Tools -> Create Command-line Launcher..
- Replace 'idea' in the string '/usr/local/bin/idea' with whatever you wish.
(I use 'ij'), so for me its '/usr/local/bin/ij'. - Open your terminal
- Navigate to the project/folder you want to open.
Write the chars you wrote after 'bin/' and then '.'
For me its
ij .
On OS X: open -a 'phpstorm.app' file-or-folder