IntelliJ IDEA 13.1.0 Web Help

The Go to braces command helps you jump to the borders of the current code block. With the command, you can also quickly navigate to the borders of the higher code blocks.

To navigate to the borders of a code block, do one of the following:
  • To navigate to the code block start, press , or , with the caret anywhere inside the code block.

    The caret jumps to the opening brace of the current code block.

  • To navigate to the code block end, press , or or or or , with the caret anywhere inside the code block.

    The caret jumps to the closing brace of the current code block.

  • 12.0+
    To toggle between code block start or end, invoke the action Move Caret to Matched Brace. This action has no default keyboard shortcut, and can be found by .
To navigate to the borders of the closest higher code block, do one of the following:
  • To jump to the higher code block start, press , or , with the caret at the current code block opening brace.
  • To jump to the higher code block end, press , or or or or , with the caret at the current code block closing brace.

Tip

Practically, you can just press , or or , or or or or as many times as you need, until the caret is positioned at the start or end of the desired code block.

See Also

Reference:

Getting Started:

Web Resources: