Live Templates let you generate frequently used code constructs in seconds. For example, type

in the editor and press Tab to see what happens.

Use Tab to move between the template fields.
You can configure live templates on the Editor | Live Templates page of the Settings/Preferences dialog (&shortcut:ShowSettings;) .