How to force Eclipse to ask for default workspace?

后端 未结 19 1748
夕颜
夕颜 2020-12-02 10:08

I noticed that after installing cdt, Eclipse always loads the default workspace. The workspace listed in the config.ini in osgi.instance.area.default

相关标签:
19条回答
  • 2020-12-02 10:47

    Version: Ecliplse CIndigo Service Release 2

    1. File > Switch Workspace > Other...
    2. In the textbox, write the path in the Workspace or Browse

    It automatically sets the default Workspace during exit. To change Workspace go back to step 1.

    0 讨论(0)
  • 2020-12-02 10:47

    Go to Window -- Preferances - General -- Startup and Shutdown -Workspaces

    Check box for Prompt for workspace on startup is there . Select it.

    Then at start up eclipse will ask for workspace selection.

    ---- EDIT ----

    On OSX the Eclipse(Juno) menu bar path is:

    Eclipse - Preferences
    

    In the preferences dialog box, I selected the tree node:

     General - Startup and Shutdown - Workspaces
    

    From that panel, there was a check box labeled

    **Prompt for workspace on startup** 
    

    I checked it, then shut down eclipse and restarted it. It prompted me for a new workspace location.

    0 讨论(0)
  • 2020-12-02 10:48

    Sometimes you need to pay attention to howw Eclipse is launched. I ever pinned Eclipse by rigk-click on the excutable and pinning it to taskbar. In this way, the Eclipse is launched to use settings under c:\User\public\public Documents\eclipse" which is not very desirable.

    However, if you pin it by creating a short-cut, then it will launch to use settings in the folder of Eclipse installation. Then everything makes much more sense.

    0 讨论(0)
  • 2020-12-02 10:49

    Starting eclipse with eclipse -clean did wonders for me.

    0 讨论(0)
  • 2020-12-02 10:49

    I first tried the -clean option, but that didn't solve the problem.

    Then I added the -data option with the correct path to the workspace.

    That solved the problem for me.

    0 讨论(0)
  • 2020-12-02 10:50

    It works for me if I tick the box 'Prompt for workspace on startup', which you find in Window > Preferences > General > Startup and Shutdown > Workspaces.

    HTH

    0 讨论(0)
提交回复
热议问题