IntelliJ IDEA 12.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 Ctrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket, Ctrl+Alt+Open Bracket or Ctrl+Alt+FCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketMeta Open BracketMeta Open BracketMeta Alt 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 BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close Bracket, Ctrl+Alt+Close Bracket or Ctrl+Alt+BCtrl+Close BracketCtrl+Close Bracket or Ctrl+AsteriskCtrl+Close BracketCtrl+Close Bracket or Ctrl+Shift+PMeta Close BracketMeta Close BracketControl Close Bracket or Control Shift P, 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+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+ICtrl+Shift+AMeta Shift AMeta Shift AMeta 3.
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 Ctrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket, Ctrl+Alt+Open Bracket or Ctrl+Alt+FCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketMeta Open BracketMeta Open BracketMeta Alt Open Bracket, with the caret at the current code block opening brace.
  • To jump to the higher code block end, press Ctrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close Bracket, Ctrl+Alt+Close Bracket or Ctrl+Alt+BCtrl+Close BracketCtrl+Close Bracket or Ctrl+AsteriskCtrl+Close BracketCtrl+Close Bracket or Ctrl+Shift+PMeta Close BracketMeta Close BracketControl Close Bracket or Control Shift P, with the caret at the current code block closing brace.

See Also

Reference:

Getting Started:

Web Resources: