I wonder how can I format my code to align it neatly? Does it have a feature similar to Eclipse's ctrlshiftf?
Select first the text you want to format and then press Ctrl+I.
Use Cmd+A first if you wish to format all text in the selected file.
Note: this procedure only re-indents the lines, it does not do any advanced formatting.
The new key binding to re-indent is control+I.