Use live templates to insert frequent code constructs.

Live template

When you select a live template from the suggestion list, the template expands to the variant that is defined on the Editor | Live Templates page of the Settings/Preferences dialog &shortcut:ShowSettings;.

Apply a live template

Use Tab to move between the template fields.