Eclipse Tip: Code Clean Up

Most Eclipse users would be aware of the Organize Imports (Source>Organize Imports or Ctrl + Shift + O) feature. With the M3 build of 3.2 Eclipse provides a lot more code clean up options. All of these are packed into a Clean Up Wizard. Check it out using Source > Clean Up… via the context menu or main menu.

Currently there are 10 clean up options. A few of them can be seen in the screen shot above. There are more to come in upcoming milestone builds. These operations can be performed on multiple source files.

Note: This is a new feature in Eclipse 3.2 M3.