IntelliJ IDEA 13.1.0 Web Help

This section describes how to wrap fragments of code according to surround templates.

To surround a block of code with a live template
  1. In the editor, select the piece of code to be surrounded.
  2. Do one of the following:
    • On the main menu, choose Code | Surround With Live Template....
    • Press Ctrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JCtrl+Alt+JAlt Command JAlt Command JAlt Command J.
  3. Select the desired surround template from the suggestion list.

See Also

Procedures:

Web Resources: