Get your source code automatically reformatted with correct indentation

There are two ways to achieve this!

1. Smart formatter setting

With this option enabled it should indent automatically:

2. Menu Item/Keyboard Shortcut

Using Ctrl+I or by selecting the menu item:

Oh, and @Rick_UpperPark has a fancy shmancy addin that will do indenting related things too!