Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent open last projects when IntelliJ IDEA starts?

By default IntelliJ IDEA opens the last project when starting.

How to start IntelliJ without opening last project?

like image 303
qwazer Avatar asked Mar 19 '11 12:03

qwazer


People also ask

How do I change the default settings in IntelliJ?

From the main menu, select File | Manage IDE Settings | Restore Default Settings. Alternatively, press Shift twice and type Restore default settings . Click Restore and Restart.

How do I change project settings in IntelliJ?

To configure project settings, select IntelliJ IDEA | Preferences on macOS or File | Settings on Windows and Linux from the main menu. Alternatively, you can press Ctrl+Alt+S to show the IDE settings. icon. Other settings are global and apply to all existing projects.

How do I close an open project in IntelliJ?

From the main menu, select File | Close All Projects. This action closes all projects that are currently opened in IntelliJ IDEA.


2 Answers

IntelliJ 14, 15, 16:

Settings -> Appearance & Behaviour -> System Settings -> Reopen last project on startup 

Previously:

Settings -> General -> Startup/shutdown -> Reopen last project on startup. 
like image 196
Tomasz Nurkiewicz Avatar answered Oct 18 '22 00:10

Tomasz Nurkiewicz


If for any reason you need to change this setting without using the UI (for example if IDEA is hanging when it opens your project), you can find the setting in eg

/.IntelliJIdea10/config/options/ide.general.xml 

The location of the file is documented in http://devnet.jetbrains.net/docs/DOC-181

The specific setting you need to change (or add) is

<application>   <component name="GeneralSettings">     <option name="reopenLastProject" value="false" />   </component> </application> 

Mac

In the latest version of IntelliJ, the location of this file on a Mac is

~/Library/Preferences/IntelliJIdea2018.2/options/ide.general.xml 

Settings Repository

If you have the settings repository enabled, then it can be found here:

~/.IntelliJIdea${idea_version}/config/settingsRepository/repository/ide.general.xml

like image 24
Patrick Wilkes Avatar answered Oct 18 '22 02:10

Patrick Wilkes