How to manage multiple projects in one workspace in IDEA?

Do you have such a stubborn loyal user of Eclipse: IDEA cannot manage multiple projects in one window! It's too inconvenient!

The requirement for one window to manage multiple projects at the same time is often needed in our daily development. Especially when we are in a distributed environment, it is much more convenient to debug in one window.

Is such a powerful IDEA really not supported? ! of course not! You can't use it!

Let's talk about how to manage the configuration of multiple projects in a workspace:

Step 1: Create a new blank project first

How to manage multiple projects in one workspace in IDEA?


Enter the project name and path in the pop-up input box according to your preferences.

Step 2: Add modules

How to manage multiple projects in one workspace in IDEA?


There are two ways to add modules:

New Module: If you want to manage a new project, you can create a new project through this option and include it in the current project management interface.

How to manage multiple projects in one workspace in IDEA?


For us Spring developers, you can continue to use Spring Initializr to initialize your project, so that the created project will become the module of the current project to manage.

Import Module: If the project you want to manage has been pulled from git, you can directly use this option to import it:

How to manage multiple projects in one workspace in IDEA?


How to manage multiple projects in one workspace in IDEA?


If there is no special configuration, then all kinds of next complete the import.

Step 3: When you continue to add items to be managed together in the future, you only need to find these two methods in the menu.

How to manage multiple projects in one workspace in IDEA?


  1. File -> New -> Module…: This is a new project
  2. File -> New -> Module from Existing Sources…: This is the imported project

By repeating the above actions, we can put together many projects that we want to debug together:

How to manage multiple projects in one workspace in IDEA?


Guess you like

Origin blog.51cto.com/15128443/2665220