Open Maven & Gradle projects in IntelliJ from Terminal

Usually we open IntelliJ & import the project from File menu. But how to do the same from your terminal ?

Here is how

Open IntelliJ -> Tools -> Create Command Line Launcher & choose the script name & location & hit OK

Choose the name & where the script has to get created. In above image, idea is the script name

To check if the changes are working

> cd <SOURCE_CODE_FOLDER>

Now the project should get open in IntelliJ

Thats all folks !

Twitter @IamVickyAV