IntelliJ IDEA 2021.3 Help

Open, close, and move projects

Open and reopen projects

Open a project

Open projects in a new or the same window

By default, when you launch the second of any subsequent project, the IDE asks you how you want to open it: in a new window or in the same window. You can configure the default behavior for such cases in the settings:

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), select Appearance & Behavior | System Settings.

  2. In the Project section, select the necessary Open project in option:

    • New window: open every project in a separate window.

    • Current window: close the current project and open the new one in the same window.

    • Ask: show a dialog with actions to choose from.

    the System Settings page in Settings/Preferences
  3. Apply the changes and close the dialog.

Always reopen projects

If you quit the IDE having multiple opened projects, they all will be reopened the next time you launch IntelliJ IDEA. If you don't want to automatically reopen your projects, you can change this behavior in the settings:

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), select Appearance & Behavior | System Settings.

  2. In the Project section, clear the Reopen projects on startup checkbox.

  3. Apply the changes and close the dialog.

If you work with multiple projects, it's likely that you have a long list of recent projects on the Welcome screen. IntelliJ IDEA provides several options that can help navigate this list in a more convenient way.

You can use the search bar to search for projects, join several recent projects in a group, or set a custom icon for each project.

Group projects

Groups make navigation simpler and help you logically organize your recent projects.

  1. On the Welcome screen, right-click any project and select New Project Group.

  2. In the Create New Project Group dialog, name the new group and click OK.

  3. Right-click the project that you want to move to the new group, select Move to Group, and click the target group's name.

After that, hover the mouse pointer over the group and use the Android studio icons logcat toolbar settings icon to show the menu from which you can open all projects in the group at once by clicking All Projects in Group. You can also ungroup the projects, move them to another group, and remove them from the list of recent projects at once.

Projects grouped on the Welcome screen

Change the project icon

For each project, you can configure a custom icon so that you can quickly find the necessary project on the Welcome screen. Your custom icon should have the SVG format.

  1. On the Welcome screen, right-click the project for which you want to change an image and select Change Project Icon.

  2. In the dialog that opens, click Choose SVG file and specify the path to the necessary SVG icon.

  3. Click OK to apply the changes.

    Changing project icon on Welcome screen

    To remove the custom icon, click Delete in the Change Project Icon dialog.

Switch between projects

If you have several opened projects at the same time, you can switch between them using the following options:

  • Switch to the next project window: Ctrl+Alt+] (Window | Next Project Window)

  • Switch to the previous project window: Ctrl+Alt+[ (Window | Previous Project Window)

Alternatively, open the Window menu and select the project to which you want to switch.

Change project location

Move a project to another location

  1. In the Project tool window Alt+1, right-click the root directory of your project and select Refactor | Move directory (F6).

  2. In the dialog that opens, specify a new location for the project and click Refactor.

    Moving a project to another location

Change the default location for projects

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), select Appearance & Behavior | System Settings.

  2. In the Default project directory field, specify the path to the folder in which you want to store your projects.

  3. Apply the changes and close the dialog.

    Changing the default location for projects

Close projects

If you need to close only one project, you can either close the project window or select File | Close Project from the main menu.

If you work with multiple projects, use the following actions to close many projects at once:

Close all projects

  • From the main menu, select File | Close All Projects.

    This action closes all projects that are currently opened in IntelliJ IDEA.

Close all but the current project

  • From the main menu, select File | Close Other Projects.

    This action closes all opened projects except the current one.

Last modified: 01 August 2022