Code | Reformat Code... (Ctrl+Alt+L):

Keyboard shortcut can be changed in File | Settings | Keymap:

If you are not familiar with IDE features yet, use Help | Find Action:

This feature is also documented.
Code | Reformat Code... (Ctrl+Alt+L):

Keyboard shortcut can be changed in File | Settings | Keymap:

If you are not familiar with IDE features yet, use Help | Find Action:

This feature is also documented.