IntelliJ IDEA 2025.2 Help

Workspace

IntelliJ IDEA lets you work with multiple projects simultaneously and view and manage them within a single frame (workspace). A workspace represents the development environment that contains all required projects, code, and libraries in one place.

You can also create multiple workspaces and switch between them in IntelliJ IDEA.

Working in a workspace can improve team collaboration, enhance productivity, and help efficiently allocate resources.

For example, it's especially useful when working with multiple Git repositories, microservices, or a monorepo.

Install the Multi-Project Workspace plugin

This functionality relies on the Multi-Project Workspace plugin, which you need to install and enable.

  1. Press Ctrl+Alt+S to open settings and then select Plugins.

  2. Open the Marketplace tab, find the Multi-Project Workspace plugin, and click Install (restart the IDE if prompted).

Creating a workspace

You can create an empty workspace or create one with projects either from the IntelliJ IDEA welcome screen or from within the IDE.

Create a new workspace from the Welcome screen

  1. Launch the New Project wizard. If no project is currently opened in IntelliJ IDEA, click New Project on the welcome screen. Otherwise, select File | New | Project from the main menu.

  2. Name the new workspace and change its location if necessary.

  3. Select the Create Git repository to place the new workspace under version control. Since the workspace is a file that contains only references to your projects, this action creates a Git repository only for the workspace.

    You will be able to do it later at any time.

  4. Click Create to create an empty workspace, or under the Workspace Projects section, click the Add icon or the Add Projects link to add projects from your local file system to the workspace and then click Create.

    Workspace projects

    IntelliJ IDEA opens the created workspace with the attached projects.

Create a workspace from inside the IDE

  1. From the main menu, select File | Open.

  2. In your local file system, select projects you want to combine into one workspace and click Open.

  3. In the notification dialog that opens, click Yes.

  4. In the New Workspace dialog, add the name and location of your workspace and click OK.

    New Workspace

    IntelliJ IDEA opens the workspace in the IDE with selected projects.

Workspace structure

When you open the created workspace in the IDE, you can view its structure in the Project tool window. This tool window lists all the included projects. Note that a workspace does not change the original project's configuration or its location.

IntelliJ IDEA detects build tools used in the projects, marks them with appropriate icons, and displays the additional tool windows (such as Maven and Gradle).

Project tool window

The Project tool window also contains the generated workspace files including the jb-workspace.xml file. This file stores paths to the workspace projects and preserves the project path even if you remove a project from your local file system. However, you can manually edit the jb-workspace.xml file to add or remove the projects.

Access the jb-workspace.xml file

  1. In the Project tool window, select Workspace Files | .idea. locate file and open it in the editor.

  2. In the list that opens, select the jb-workspace.xml file to open it in the editor.

You can add newly created, already existing, or cloned projects to the opened workspace.

Add a project from the workspace context menu

  1. Open your workspace in the IDE.

  2. In the Project tool window, right-click the workspace and select Add Projects to Workspace.

  3. From your local file system, select a project you want to add and click Open.

    The project is added to the workspace. If you need to remove it, right-click the project and select Remove project-name from Workspace.

    IntelliJ IDEA supports Maven and Gradle build tools within the projects inside the workspace. Such projects are marked with the appropriate Maven or Gradle icons in the project tree, and the related tool windows will be available.

Add a project to the opened workspace from the main menu

  1. Press Ctrl+Alt+S to open settings and then select System Settings.

  2. From the options on the right, under the Project section, select Ask option and click OK.

  3. From the main menu, select File | Open to add a project from your local file system or File | New | Project from Version Control to add a project from the outside repository.

  4. Follow the suggested steps.

  5. In the notification dialog that opens, click Add to Workspace.

    Notification

    As a result, the project is added to the opened workspace.

Managing projects inside workspace

You can manage the projects within the workspace, including the following notable actions:

  • Check out only a subset of the projects defined in a workspace.

  • Unload projects (or in case of Gradle or Maven unlink projects) from the workspace if you don't need to work with them at the moment.

  • When working with different Git projects, view and manage Git repositories to which those projects belong.

  • Commit workspace configuration files to a Git repository to enable sharing and versioning.

  • Since the created workspace is located in its own repository, you can share a link to your workspace if you want others to access the projects it defines.

Check out subset of projects

If you want to work with only specific projects from the repository you are cloning, you can check out only the projects you need.

  1. Launch the New Project wizard. If no project is currently opened in IntelliJ IDEA, click New Project on the welcome screen. Otherwise, select File | New | Project from Version Control from the main menu.

  2. In the Clone Repository dialog, add the repository information and click Clone.

  3. In the Checkout Projects dialog, select projects you want to open in the workspace and click OK.

    Checkout Projects

    IntelliJ IDEA loads only the selected projects keeping others inactive. If you decide to add an inactive project, right-click it and from the context menu select Checkout 'project-name'.

Unload a project

You can load or unload projects in the workspace. For example, you created or opened a workspace with several projects and then decided to work just with some of them, you can unload projects you don't need.

  1. In the Project tool window, right-click a project you want to unload.

  2. From the context menu, select Unload 'project-name'.

    The project becomes inactive. Using the Load 'project-name' option will return the project's active state.

If a project inside the workspace uses Gradle or Maven build tool, you can unlink a project from your workspace.

  1. Click the Gradle icon on the right sidebar to open the Gradle tool window.

  2. Right-click a project you need and from the context menu, select Unlink Gradle Project.

    IntelliJ IDEA removes the project from the Gradle tool window, stops its synchronization and deactivates it in the workspace.

    If you need to link the project again, right-click it in the Project tool window and select Load 'project-name'.

  1. Click the Maven icon on the right sidebar to open the Maven tool window.

  2. Right-click a project you need and from the context menu, select Unlink Maven Projects.

    IntelliJ IDEA removes the project from the Maven tool window, stops its synchronization and deactivates it in the workspace.

    If you need to link the project again, right-click it in the Project tool window and select Load 'project-name'.

View Git repositories

  1. In the IDE, click Git repository in the menu bar. The context menu lists all repositories.

    Git branches
  2. If you open the Git window, you notice that all projects are grouped by their own repositories for better management and readability.

    Double-click the repository to view commits only for the selected project and its branch.

    the Git tool window

You can build just one project inside the workspace or all of them.

Build projects

  1. In the Project tool window, select a project you want to build.

  2. From the main menu, select Build | Build Project 'project-name'.

    If you want to build the whole workspace, select Build All Projects.

03 October 2025