IntelliJ IDEA 14.0.0 Web Help

Navigating to Braces

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 Ctrl+Open Bracket, 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 Ctrl+Close Bracket, 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 Ctrl+Shift+A.

To navigate to the borders of the closest higher code block, do one of the following:

See Also

Last modified: 4 December 2014
comments powered by Disqus