Eclipse auto indent, auto formatting, auto alignment shortcut

Ctrl+Shift+F to invoke the Auto Formatter

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

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

By Keenlio, September 25, 2014

2 Comments

  1. wedding tent says:

    Eclipse auto indent, auto formatting, auto alignment shortcut

  2. PumaRachel says:

    Thanks for the useful information. Need to add your blog to bookmarks

Leave a Comment to wedding tent

Leave a Reply to wedding tent Cancel reply

Your email address will not be published. Required fields are marked *


− 4 = two

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>