Well my question is pretty simple, how do I start two instances of IntelliJ (community edition). When I have one instance started and I try to start another one, all that happens is that my started instance gets focus.
I'm developing Android applications using IntelliJ.
Any thoughts?
File->Settings->General and in section "Startup/Shutdown" check "Confirm window to open project in"
There is an other very quick way of doing it. There is always an EAP version of the IDE and it can run at same time with the current one. For example I am using AppCode 2017.2 and 2017.3 EAP in parallel.
You need to configure each instance to use its own folders for config/plugins/system locations by editing
idea.properties
file on Windows/Linux andInfo.plist
on Mac. You can find the details in FAQ.Note that normally it's not necessary since you can open multiple projects in different IDEA frames within the same instance using File | Open Project.
Go go to IntelliJ | Tools | Create Command-line Launcher...
Keep the defaults (which creates a binary named "idea"):
Now, go to your command line.
Cd to your project directory and type:
idea .
This will create a .idea directory for IntelliJ configurations for that project, which it will re-use each time to start IntelliJ from that directory.
You can now go to a different project directory and type:
idea .
Assuming you left the previous IntellJ IDE open, you will now have two IntellJ IDEs open, one for each project.
Notes:
1) If your project uses environment variables, then I'd recommending opening a separate terminal tab/window for each project and set that project's environment variables before running:
idea .
2) Depending on what you're trying to accomplish, you may need to modify your classpath (or settings like Project GOPATH) for each IntelliJ instance.
Press Ctrl+Alt+S
Choose
Appearance & Behavior
, thenSystem Settings
, check radio button:Open project in new window
.CrazyCoder has roughly the right idea. However, setting the config file alone was not sufficient for me to run multiple instances. Here are my steps to get this going (in GNU/Linux, I am sure you can figure out equivalent in other systems):
Create a folder/directory per instance you want to run.
Go to the installation directory (e.g. /opt/intellij) and copy the idea.properties (in bin) file over to your instance directory.
Copy 3 more directories: system, plugins, and config. I highly recommend doing this without the running instance
Open your idea.properties file and update the configurations for your directories:
Now, you can start IntelliJ with the new setup:
Obviously, you probably want to put the command in a script file for invocation. This seems to work for me.