IntelliJ IDEA 11.0 Web Help

11.0+

The Smart Enter completion enables you to create syntactically correct code constructs.

To automatically complete a statement
  • Start typing a statement, and press Ctrl+Shift+EnterCommand Shift Enter. The closing punctuation is added, and the caret moves to the next editing position.

For example, start typing a method declaration, and press Ctrl+Shift+EnterCommand Shift Enter after the opening parenthesis:

completePunctuation1

This will create the entire construct of a method, the caret resting inside the method body:

completePunctuation2

Start typing a code construct:

completePunctuation3

After pressing Ctrl+Shift+EnterCommand Shift Enter, the construct is completed, and the caret is placed at the next editing position:

completePunctuation4

See Also

Reference:

Web Resources: