How to Auto-Align Codes in Eclipse?

To auto-align codes in Eclipse simply press :

Ctrl + Shift + F

These are shortcut keys which work as auto-format.

Alternatively you can also go to SOURCE from Menu bar and then click on Format.

Menu bar >>> Source >>> Format

Hopefully it helps you out.

Add Comment