How to change the Eclipse default workspace?

后端 未结 15 1110
难免孤独
难免孤独 2020-11-30 17:10

Where can I change the default workspace in Eclipse?

相关标签:
15条回答
  • 2020-11-30 17:54

    You can check the option that shows up when you start eclipse. Please see the figure below

    0 讨论(0)
    1. Go to eclipse\configuration\
    2. Open the file "config.ini"
    3. Modify the line

      osgi.instance.area.default="F:/Workspace/Java"
      

      where "F:/Workspace/Java" should be your default workspace!

    0 讨论(0)
  • 2020-11-30 17:58

    In Eclipse, go to File -> Switch Workspace, choose or create a new workspace.

    0 讨论(0)
  • 2020-11-30 18:00

    I took this question to mean how can you change the Default workspace so that when Eclipse boots up the workspace you want is automatically loaded:

    • Go under preferences then type "workspace" in the search box provided to filter the list. Alternatively you can go to General>Startup and Shutdown>Workspaces.
    • There you can set a flag to make Eclipse prompt you to select a workspace at startup by checking the "Prompt for workspace at startup" checkbox.
    • You can set the number of previous workspaces to remember also. Finally there is a list of recent workspaces. If you just remove all but the one you want Eclipse will automatically startup with that workspace.
    0 讨论(0)
  • 2020-11-30 18:02

    Whatever Frank has suggested to change in config.ini is correct. In case, if that didn't help, you need to remove path from recent workspace as below.

    1. Go to eclipse\configuration\org.eclipse.ui.ide.prefs\
    2. Open the file "org.eclipse.ui.ide.prefs"
    3. Remove the first path in RECENT_WORKSPACES.

      MAX_RECENT_WORKSPACES=5 RECENT_WORKSPACES=/Users/wrokspace1\n/Users/wrokspace2\n/Users/wrokspace3\n/Users/wrokspace4 RECENT_WORKSPACES_PROTOCOL=3
      SHOW_WORKSPACE_SELECTION_DIALOG=false
      eclipse.preferences.version=1

    0 讨论(0)
  • 2020-11-30 18:02

    If you want to change recent workspace manually in a configurationfile org.eclipse.ui.ide.prefs exists in

    eclipse > configuration > .settings > org.eclipse.ui.ide.prefs
    

    open this file in an editor find RECENT_WORKSPACES in line #2 and in this line you can see recent workspaces and can change or even remove them.

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