Go to ‘Tools’ menu in Intellij IDEA and click on ‘Create Command-line Launcher…’
Choose a command to add to
/user/local/bin. Here I choose
idea as command. If you have different versions of Intellij IDEA then it is better to give some suffix to indicate version.
I usually use
idea for Ultimate edition and
ideacfor Community edition.
Now, suppose your project for e.g. `MyProject` is in
~/git. Then you can open the project in Intellij IDEA by using the command
If you are inside the project directory then you can open the project using command