By lordbii
via eclipseone.wordpress.com
Published: Dec 16 2009 / 03:25
Every time you save a class Eclipse can automatically format your code and clean it up. You can ask Eclipse to do things like format code, organise imports, add @Override annotations, add final modifiers to fields, put braces around one line if statements/loops and more. Huge timesaver.



Comments
Eddie Dealtry replied ago:
Will try 'Format edited lines' only to avoid repo differences
Byron replied ago:
I agree, if either each team member is using his own formatting rules or your team's coding standards aren't fixed yet or there's a lot of legacy code not on the new coding standards, then it might be better to start off with Format edited liines for now.
I'm planning a post in the near future on easily sharing workspace settings across the team such as formatting, clean up and compiler settings (eg. warnings) to help with this. So stay tuned.
Voters For This Link (10)
Voters Against This Link (0)