Dims
Dims

Reputation: 51229

Eclipse workspace equivalent in IntelliJ?

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

enter image description here

I would think untitled is a project and untitled2 is a module, but both has src subfolders and listed in

enter image description here

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

Answers (4)

Andrew
Andrew

Reputation: 49656

All the information you need is here. JetBrains has a wonderful guide called "Working with modules".

Upvotes: 3

Darek Kay
Darek Kay

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:

enter image description here

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

Meo
Meo

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

hitz
hitz

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

Related Questions