So I am creating a program that can automatically open an IntelliJ IDEA Project (.ipr) from the command line. I have it successfully opening with the following command:
Path\To\idea.exe Path\To\ProjectFile\project.ipr
However, if a project is already currently open in IntelliJ IDEA, it will not open a new one in a new window. IT is possible to open a new project in a new window by doing File -> Open... But is there a way to do this via a commandprompt argument (maybe some sort of flag or something?)?
Switch between projects If you have several opened projects at the same time, you can switch between them using the following options: Switch to the next project window: Ctrl+Alt+] (Window | Next Project Window) Switch to the previous project window: Ctrl+Alt+[ (Window | Previous Project Window)
Most IDEs provide workspaces that contain multiple projects and thus enable you to work on mutliple projects in one instance of the IDE. IntelliJ, which has becom the defacto standard for Java Devs, does not support workspaces.
You can create command-line launcher in IntelliJ IDEA: Tools->Create command line Launcher
This answer can be helpful: https://stackoverflow.com/a/41592203/4191683
If anyone else runs into this issue. Just recreate the shell command in Tools -> Create command line Launcher. A fresh launcher worked after update.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With