On this page:

Navigating to the borders of a code block

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.

  • To toggle between code block start or end, press Ctrl+Shift+M.

    You can also invoke this action (Move Caret to Matching Brace) with a Search Everywhere or Go to Action functionality:

    images/matching_braces.png

Navigating to the borders of the closest higher code block

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

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