Format Source Code

You can format the selected code or the whole current file, if no selection.
Press the Format Source button Format Source Button in the toolbar or from the right click menu Source > Format Source.