By default IntelliJ IDEA opens the last project when starting.
How to start IntelliJ without opening last project?
By default IntelliJ IDEA opens the last project when starting.
How to start IntelliJ without opening last project?
IntelliJ 14, 15, 16:
Settings -> Appearance & Behaviour -> System Settings -> Reopen last project on startup Previously:
Settings -> General -> Startup/shutdown -> Reopen last project on startup. 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> In the latest version of IntelliJ, the location of this file on a Mac is
~/Library/Preferences/IntelliJIdea2018.2/options/ide.general.xml If you have the settings repository enabled, then it can be found here:
~/.IntelliJIdea${idea_version}/config/settingsRepository/repository/ide.general.xml
<option name="reopenLastProject" value="false" /><option name="openPaths"> tag in the file recentProjects.xml worked for me.~/Library/Application Support/JetBrains/IntelliJIdea2022.3/options/ide.general.xmlIf you're just trying to start up IntelliJ once without opening any previous projects (eg due to IntelliJ crashing with a specific project), you can use the dontReopenProjects option from the command line.
Example:
C:\dev\ide\IntelliJ IDEA Community Edition 2020.2\bin\idea64.exe dontReopenProjects Note: There are also a bunch of other useful command line options you can use, such as noSplash and disableNonBundledPlugins.
Source CLI documentation (credit to mikebridge for pointing it out in a comment on this answer): https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#arguments
nosplash not noSplash (which opens a new file called noSplash in Light mode). However, both dontReopenProjects and dontreopenprojects are correct. Unfortunate inconsistency.PhpStorm. If you use JetBrains Toolbox they will (attempt to) add that executable to your path automatically. And good to know is that PhpStorm disableNonBundledPlugins only does something useful if PhpStorm (your JetBrains IDE) is not running. It starts the IDE with that setting. It does not modify the currently running IDE.The fastest way is to
ctrl+shift+a (windows)
cmd+shift+a (mac)
and then just type
reopen last project on startup
IntelliJ 2016.x keeps this information in its own file now. On my MacBook Pro w/OSX:
~/Library/Preferences/IntelliJIdea2016.2/options/recentProjects.xml If IntelliJ hangs on startup, force quit the app then rename this file to something like "recentProjects.xml.bak."
Upon restart you'll get the option screen for creating or opening a project.
Note: the actual path may vary depending upon which version of IntelliJ you have installed eg.
IntelliJIdea2016.1/ IntelliJIdea2016.2/ IntelliJIdea2016.3/
<option name="openPaths"> tag that you want to prevent from opening on launchide.general.xml file for this version, it has been moved to ~/Library/Application Support/JetBrains/IntelliJIdea2020.3/options/ide.general.xml. You may need to manually add the <option name="reopenLastProject" value="false" /> line to the GeneralSettings block.On WINDOWS, the path is:
C:\Users\[USERNAME]\.IntelliJIdea[VERSION]\config\options\ide.general.xml
Then set reopenLastProject to false, i.e.:
<application> <component name="GeneralSettings"> <option name="reopenLastProject" value="false" /> </component> </application>
PS: You may have to create the option if it doesn't exist.