Open, close, and move projects
Open and reopen projects
Open a project
From the main menu, select Open or Open Recent if you have worked with the project lately.
and clickAlternatively, you can open projects from the command line.
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:
In the Settings/Preferences dialog Ctrl+Alt+S, select .
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.
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:
In the Settings/Preferences dialog Ctrl+Alt+S, select .
In the Project section, clear the Reopen projects on startup checkbox.
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+] (
)Switch to the previous project window: Ctrl+Alt+[ (
)
Alternatively, open the
menu and select the project to which you want to switch.Change project location
Move a project to another location
In the Project tool window Alt+1, right-click the root directory of your project and select (F6 ).
In the dialog that opens, specify a new location for the project and click Refactor.
Change the default location for projects
In the Settings/Preferences dialog Ctrl+Alt+S, select .
In the Default project directory field, specify the path to the folder in which you want to store your projects.
Apply the changes and close the dialog.
Close projects
If you need to close only one project, you can either close the project window or select
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
.This action closes all projects that are currently opened in IntelliJ IDEA.
Close all but the current project
From the main menu, select
.This action closes all opened projects except the current one.