Eclipse/MyEclipse默認workspace路徑設置

首次啓動Eclipse/MyEclipse時, 會彈出"Workspace Launcher"對話框, 提示設置Workspace路徑. 設定好路徑後, 倘若勾選了"Use this as the default and do not ask again", 那麼以後再啓動時就不會有提示, 直接進入默認工作空間.

 

有3中方法可以更改workspace的路徑設置.

 

1. 啓動Eclipse/MyEclipse後, 打開"Window -> Preferences -> General -> Workspace", 點Workspace頁上的"Startup and Shutdown", 然後勾選"Startup and Shutdown"頁中的"Prompt for workspace on startup";

 

2. 用記事本打開"/eclipse/configuration/.settings/org.eclipse.ui.ide.prefs", 將"SHOW_WORKSPACE_SELECTION_DIALOG"的值改爲"true";

P.S.:  "RECENT_WORKSPACES"的值表示設置過的workspace絕對路徑. 第一個路徑是當前設定的路徑, 向後依次之前曾設置過的. 各路徑之間用"/n"分隔.

 

3. 刪掉"/eclipse/configuration/.settings/org.eclipse.ui.ide.prefs".

 

執行上述操作後, 再次啓動, 又會彈出"Workspace Launcher"對話框, 可以重新設置了.

 

第一種方法已經試過,好用!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章