Open multiple projects in the Same Workspace with IntelliJ IDEA(FREE)

Sanjay Singh
3 min readOct 25, 2024

--

While IntelliJ IDEA does not allow you to open multiple projects in the same window, it does allow you to have multiple modules in one project.

Message to Readers:

If you enjoyed this content, please consider giving it a clap and Follow Me on Medium for more articles on Java, Spring Boot, and microservices. Additionally, you can connect with me on LinkedIn: Follow Me on LinkedIn.

Please Follow Me , I Will create more free content for you

Story List Categories:

  • About Me & List of Stories
  • Java — All things Java-related.
  • Java Interview Playbook: Your Go-To Reading List — For interview preparation.
  • JAVA-8 — Dedicated to Java 8 topics.
  • Spring Boot & Spring — Focused on Spring and Spring Boot.
  • Microservices Topics List — Covering various microservices topics.

Step 1- Open Your Primary Project:
Start by launching IntelliJ IDEA and opening the main project you’re working on. This will serve as the workspace base.

Step2 -Add a New Project to in Same Workspace:

go to → click on “file”→ click on “project structure” → click on “module” → click on “+

Step 3- When you click the “+” icon, you’ll have two options:

1- New Module 2- Import Module(Select)

Use second options Importing Module by Selecting the POM File

When you click Import Module, you can select the pom.xml file of the project you want to add to the same workspace. This will import the project with all its dependencies and configurations.

After selecting the pom.xml file and confirming, IntelliJ IDEA will automatically add the project to your workspace

Before (Single Project)

After success (Multiple Project)

shortcuts for opening a project, formatting code, changing the theme, searching for files, and searching for keywords across an entire project in IntelliJ IDEA:

Opening a Project

  • Open Project: Ctrl + Shift + O (Windows/Linux), Cmd + Shift + O (Mac)
  • You can also go to File > Open to open an existing project.

Formatting Code

  • Reformat Code: Ctrl + Alt + L (Windows/Linux), Cmd + Option + L (Mac)
  • This shortcut formats the selected code according to your code style settings.

Changing the Theme

  1. Open Settings: Ctrl + Alt + S (Windows/Linux), Cmd + , (Mac)
  2. Go to Appearance & Behavior > Appearance
  3. Select your preferred Theme (e.g., Light, Dark, Darcula) from the dropdown.

Searching for a File

  • Search for a File: Ctrl + Shift + N (Windows/Linux), Cmd + Shift + O (Mac)
  • This allows you to quickly search for and open any file in the project.

Searching for a Keyword in the Whole Project

  • Find in Project: Ctrl + Shift + F (Windows/Linux), Cmd + Shift + F (Mac)
  • Use this to search for a specific keyword across all files in the entire project.

Message to Readers:

If you enjoyed this content, please consider giving it a clap and Follow Me on Medium for more articles on Java, Spring Boot, and microservices. Additionally, you can connect with me on LinkedIn: Follow Me on LinkedIn.

Story List Categories:

  • About Me & List of Stories
  • Java — All things Java-related.
  • Java Interview Playbook: Your Go-To Reading List — For interview preparation.
  • JAVA-8 — Dedicated to Java 8 topics.
  • Spring Boot & Spring — Focused on Spring and Spring Boot.
  • Microservices Topics List — Covering various microservices topics.

--

--

Sanjay Singh
Sanjay Singh

Written by Sanjay Singh

Java, Spring Boot & Microservices developer Sharing knowledge, tutorials & coding tips on my Medium page. Follow me for insights & see story list section

No responses yet