How to order modules in intellij-idea?

Let's say I have a project with a lot of modules in Intellij-Idea:

  • A
  • B
    ...
  • Z

At a certain time, I need to work only with 2 or 3 modules: A, M, Z. Therefore, it would be very convenient to hide all other modules from Project Browser. Or to reorder packages, for example:

  • A
  • M
  • Z
  • IN
  • ...

Is there any way to do this?

UPDATE: I don’t want to remove inactive modules, I just want to group the modules I work with.

+5
source share
1 answer

Unable to reorder modules. But there are two ways to do what you want.

  • Module groups

Create several groups of modules by choosing File> Project Structure> Modules. Move the modules to the group of modules by selecting one of the additional modules, open the context menu (that is, right-click) and select "Move module to group." You can create a new group, select an existing group or move it outside any group:

enter image description here

Then, in the project view, you can collapse the group (s) with modules that you do not want to focus on. All modules are still present and available (i.e. no module is removed). Find Grouping Modules in the reference guide for more information.

  1. View area

Define the area (options> Appearance and behavior) Areas in which only the modules of interest will be displayed. See the help page for information on Scope syntax and how to define modules. Then, in the project window, select the type of scope:

enter image description here

The first option is probably the easier of the two.

+12
source

All Articles