Tuesday, November 4, 2008

Eclipse Tip: Block Autoformatting

Blocks of code can be autoformatted in Eclipse. Select the block of code and use the regular autoformat command. 

Default is CTRL + Shift + F

It comes in handy when making a small update in a file that isn't formatted. Autoformatting the whole file can cause diff tools to have trouble as autoformatting tends to make minor changes to every line of a file.

No comments: