IntelliJ IDEA在启动时默认打开最后一个项目。

如何启动IntelliJ不打开最后一个项目?


当前回答

在Mac上,该文件位于~/Library/Preferences/IntelliJIdea12/options/ide.general.xml

然后将reopenLastProject选项设置为false。

其他回答

在IntelliJ 14中是:

设置->外观与行为->系统设置->启动/关机-> . 0 在启动时重新打开上一个项目

按下CTL+ALT+S可以弹出设置窗口。

对于新的IntelliJ版本[如2020.3.2…]

我在VI中使用下面的路径打开这个文件:

~ /图书馆/偏好/ IdeaIC13 /选项/ ide.general.xml

并更改了这个值:

<option name="reopenLastProject" value="true" />

to

<option name="reopenLastProject" value="false" />

在Mac上,该文件位于~/Library/Preferences/IntelliJIdea12/options/ide.general.xml

然后将reopenLastProject选项设置为false。

如果你只是想启动一次IntelliJ,而不打开任何以前的项目(例如,由于IntelliJ崩溃了一个特定的项目),你可以从命令行使用dontReopenProjects选项。

例子:

C:\dev\ide\IntelliJ IDEA Community Edition 2020.2\bin\idea64.exe dontReopenProjects

来源(来自mikebridge,因为他在评论中指出了这个问题):https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#arguments

注意:还有一堆其他有用的命令行选项,如noSplash和disableNonBundledPlugins。