Use live templates to insert frequent code constructs. For example, type for in the editor.

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;.

Live template

Use Tab to move between the template fields.