IntelliJ IDEA 14.0.0 Web Help

Completing Statements

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+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+Enter after the opening parenthesis:


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


Start typing a code construct:


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


See Also


Web Resources:

Last modified: 4 December 2014
comments powered by Disqus