-
Open the project you want to add a module to, and
select File | New Module.
As a result, the New Module wizard opens. (There are also other ways of accessing this wizard, see Opening the New Module wizard.)
- On the first page of the wizard, in the left-hand pane, select the module type to be created.
-
In the right-hand part of the page, specify
the module name, and
the location of the content root folder and
the module .iml file.
The rest of the settings as well as the next steps depend on the module type you are creating. For more information, see the topics listed in the See Also section.
Provided that a project is open in IntelliJ IDEA, you can access the New Module wizard from:
- The main menu: .
- The Project tool window: select a module folder, and then select in the context or main menu.
-
The Project Structure dialog:
in the leftmost pane select Modules,
above the pane to the right click
and
select New Module.
