IntelliJ IDEA 2021.1 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.

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: 08 March 2021