Reputation: 51229
It is said in IntelliJ IDEA Q&A for Eclipse Users that Eclipse Workspace is equivalent to "project" in IntelliJ
terms, while Eclipse's project is equivalent to IntelliJ's module.
But after I created a project untitled
and then created module untitled2
I got the following picture
I would think untitled
is a project and untitled2
is a module, but both has src
subfolders and listed in
so, both are modules of different level. Is this correct?
Is it possible to create module untitled3
at the same level as untitled
?
How to create several modules of the same level without topmost one?
Upvotes: 31
Views: 42446
Reputation: 49656
All the information you need is here. JetBrains has a wonderful guide called "Working with modules".
Upvotes: 3
Reputation: 16709
If you want to simulate the Eclipse workflow, you should create an empty project (~ workspace) first:
New Project > Empty Project
Now you can create separate modules (~ projects) to be shown exactly like you want:
You could also select untitled2
, press F6 (Refactor > Move
) and move it one level up in your directory. While creating untitled3
you can specify the folder for your module (use IdeaProjects
instead of untitled
).
Upvotes: 29
Reputation: 12511
Modules can be created on any level and any location, regardless the project location. You can safely remove the "parent" module.
Upvotes: 1
Reputation: 1110
The workspace equivalent term refers to Project Window in intellij. It will consists of modules which are equivalent of individual projects in Eclipse.
EDIT: You can right click on untitled
module and go to Open Module Settings
. And select Modules
in project settings. With +
sign you can choose to create new module. This should create new module on same level as untitled
Upvotes: 3