How can I set default project location for all projects in IntelliJ IDEA?

JavaIntellij IdeaAndroid Studio

Java Problem Overview


I'm wondering if there is a way to set the default location for all IntelliJ projects, something similar to the workspace concept in Eclipse?

Because I always need to change the IDEA project location when I create a new project.

Java Solutions


Solution 1 - Java

Required mininum version: IntelliJ IDEA 2018.2 EAP

IntelliJ IDEA 2018.2 EAP (Ultimate Edition)
Build #IU-182.2371.4, built on May 15, 2018
JRE: 1.8.0_152-release-1226-b7 x86_64

> ability to specify the default directory for opening projects. In the > Preferences | Appearance & Behavior | System Settings in the Project > Opening section there is a new Default directory field where you can > set a directory.

direct link to open settings: jetbrains://idea/settings?name=Appearance+%26+Behavior--System+Settings

enter image description here

more:

Solution 2 - Java

It's not possible yet (IDEA 16 EAP 144.4199), or the remembering has been disabled for some reason.

I opened https://youtrack.jetbrains.com/issue/IDEA-152061.

UPDATE the above issue has been fixed and IDEA now remembers last project location.

Vote for https://youtrack.jetbrains.com/issue/IDEA-151727 to have a configuration entry.

Solution 3 - Java

  • Intellij's Project is equivalent to an Eclipse Workspace
  • Intellij's Modules are equivalent to Eclipse Projects

Instead of creating different projects in IntelliJ ( & consequently having to change project locations), create new modules within the same project. Just remember to increase the memory settings for the IDE since all the modules within the same project share the memory space.

You can learn more about this from the IntelliJ help section

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMainstreamDeveloper00View Question on Stackoverflow
Solution 1 - JavaLukas M.View Answer on Stackoverflow
Solution 2 - JavaTWiStErRobView Answer on Stackoverflow
Solution 3 - JavaGurushyaView Answer on Stackoverflow