IntelliJ IDEA在启动时默认打开最后一个项目。
如何启动IntelliJ不打开最后一个项目?
IntelliJ IDEA在启动时默认打开最后一个项目。
如何启动IntelliJ不打开最后一个项目?
当前回答
第14、15、16号:
Settings -> Appearance & Behaviour -> System Settings -> Reopen last project on startup
以前:
Settings -> General -> Startup/shutdown -> Reopen last project on startup.
其他回答
如果出于任何原因,你需要在不使用UI的情况下更改此设置(例如,如果IDEA在打开项目时挂起),你可以在eg中找到设置
/.IntelliJIdea10/config/options/ide.general.xml
该文件的位置记录在http://devnet.jetbrains.net/docs/DOC-181中
您需要更改(或添加)的特定设置是
<application>
<component name="GeneralSettings">
<option name="reopenLastProject" value="false" />
</component>
</application>
Mac
在IntelliJ的最新版本中,此文件在Mac上的位置为
~/Library/Preferences/IntelliJIdea2018.2/options/ide.general.xml
设置存储库
如果你启用了设置存储库,那么可以在这里找到它:
~ / .IntelliJIdea $ {idea_version} / config / settingsRepository /仓库/ ide.general.xml
在Mac上,该文件位于~/Library/Preferences/IntelliJIdea12/options/ide.general.xml
然后将reopenLastProject选项设置为false。
对于最新版本的Android Studio IDE
按照下面的步骤来做
文件>设置>系统设置>单击“重新打开上一个项目”复选框>应用或确定
如果你只是想启动一次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。
IntelliJ 2016。X现在将这些信息保存在自己的文件中。 在带有OSX的MacBook Pro上:
~/Library/Preferences/IntelliJIdea2016.2/options/recentProjects.xml
如果IntelliJ在启动时挂起,强制退出应用程序,然后将该文件重命名为“recentProjects.xml.bak”。
重新启动后,您将看到用于创建或打开项目的选项屏幕。
注意:实际路径可能会根据您安装的IntelliJ版本而有所不同。
IntelliJIdea2016.1/ IntelliJIdea2016.2/ IntelliJIdea2016.3/