How to prevent open last projects when IntelliJ IDEA starts?

前端 未结 13 1616
我寻月下人不归
我寻月下人不归 2020-12-07 09:35

By default IntelliJ IDEA opens the last project when starting.

How to start IntelliJ without opening last project?

相关标签:
13条回答
  • 2020-12-07 10:27

    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/

    0 讨论(0)
  • 2020-12-07 10:28

    The fastest way is to

    ctrl+shift+a (windows)

    cmd+shift+a (mac)

    and then just type

    reopen last project on startup

    0 讨论(0)
  • 2020-12-07 10:29

    Intellij Idea or Android Studio:

    From the menu go to :

    File > Settings >Appearence & Behavior > System Settings.

    disable the option:

    Reopen last project on startup

    0 讨论(0)
  • 2020-12-07 10:31

    On the Mac the file is located at ~/Library/Preferences/IntelliJIdea12/options/ide.general.xml

    And then set the reopenLastProject option to false.

    0 讨论(0)
  • 2020-12-07 10:34

    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.

    0 讨论(0)
  • 2020-12-07 10:35

    I opened this file in VI using this path:

    ~/Library/preferences/IdeaIC13/options/ide.general.xml

    and changed this value:

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

    to

    <option name="reopenLastProject" value="false" />
    
    0 讨论(0)
提交回复
热议问题