Thursday, February 11, 2010

Removing Unused Workspaces from Eclipse

Workspaces in Eclipse is one of those features that are often unused or not used enough.  Personally, I find it extremely helpful to use them, particularly when working on different branches. There are times when you need/want to delete some of these workspaces from your workspace list. Here is how you can do this:
  1. Go to the Eclipse directory where you installed Eclipse (I'll refer to it as $ECLIPSE_HOME from here on).
  2. Open the file $ECLIPSE_HOME/configuration/.settings/org.eclipse.ui.ide.prefs with your favorite editor (obviously not Eclipse).
  3. The key RECENT_WORKSPACES should have a comma separated list of all previous workspaces your IDE has used. Remove them as needed/wanted.
Needless to say, this should be done while Eclipse is not running. At this point, you can safely remove the directory where the workspace resided. BTW, these instructions work well on the SpringSource Tool Suite (STS).

No comments: