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.

Vasanth Dharmaraj is a Java Architect currently working for Western Union living in the Bay Area. He is interested in programming, gadgets, formula one... You can follow him on Twitter.

Posted in Eclipse, Java

Ads By Google