Where does Eclipse store the info about which workspace to start up with?

后端 未结 6 674
醉话见心
醉话见心 2021-02-07 01:15

When I launch Eclipse it starts with one of the workspaces I created and selected \"don\'t ask again\" (standardly, Eclipse asks about which workspace to start with during the s

6条回答
  •  日久生厌
    2021-02-07 01:45

    The settings have changed since this question was posted, as newer versions of Eclipse have been released.

    With Eclipse Luna, navigate to $ECLIPSE_HOME/eclipse/configuration/.settings and the file org.eclipse.ui.ide.prefs contains settings like this (Windows file configuration shown):

    MAX_RECENT_WORKSPACES=5
    RECENT_WORKSPACES=C\:\\src\\eclipse-workspaces\\luna\\MyApp\nC\:\\src\\eclipse-workspaces\\luna\\MyOtherApp
    RECENT_WORKSPACES_PROTOCOL=3
    SHOW_WORKSPACE_SELECTION_DIALOG=true
    eclipse.preferences.version=1
    

    Each entry in RECENT_WORKSPACES appears to be delimited by \n with no spaces. Whenever I manually shuffle my workspaces around (which is rare, but it happens), I've had great success hand-editing this file, saving it, and having the new paths show up just fine in the Workspace Lancher/Select a Workspace dialog.

提交回复
热议问题