views:

446

answers:

3

what is the auto alignment shortcut key in eclipse?

+2  A: 

Auto-alignment? Lawful good?

If you mean formatting, then Ctrl+Shift+F.

Joey
+1  A: 

Ctrl+Shift+F to invoke the Auto Formatter

Ctrl+I to indent the selected part (or all) of you code.

Peter Perháč
A: 

Want to format it automatically when you save the file???

then Goto Window > Preferences > Java > Editor > Save Actions

and configure your save actions.

Along with saving, you can format, Organize imports,add modifier ‘final’ where possible etc

HanuAthena