Eclipse Tip: Format edited lines on Save

Hm… It has been a long time since I posted an Eclipse Tip. I thought I will blog about this cool new feature in Eclipse Ganymede.

Previously I have posted about Save Actions in Eclipse. One of the feature I always use is to format code on save. But I run into trouble when I am editing code originally written by someone else who use a different formatting scheme or no formatting at all. Now the entire file is reformatted and it is a nightmare to check it in. Eclipse now has an option now to format only edited code on save. I am loving this feature…

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