IntelliJ IDEA 14.0.0 Web Help

Using Postfix Templates

Overview

Postfix templates appear after dot in Java code. They are especially useful to speed up coding, enabling you to reduce backward caret jumps.

Enabling or disabling postfix templates

To enable or disable showing postfix templates in the suggestion list

  • Select or clear the check box Enable postfix templates in the Postfix Templates page of the editor settings.

Using postfix templates

To apply a postfix template, follow these steps

  1. Type your code followed by a dot, until a suggestion list appears , or press Ctrl+J.
  2. Choose the desired postfix template from the suggestion list. If necessary, choose an expression to be surrounded or replaced.
  3. Press the expansion key, defined in the Postfix Templates page of the editor settings.

Example

postfix_templates2

Important note

See Also

Reference:

Web Resources:

Last modified: 4 December 2014
comments powered by Disqus