In this section:
Navigating to the borders of a code block
- To navigate to the code block start, press ⌥⌘[ or ⌥⌘[⌘[ or ⌘[⌥⌘[ or ⌥⌘[^ Open Bracket, ⌃[ or ⌃[^ Open Bracket, ^ ⌥ Open Bracket, ⌃[, ⌃⌥[, ⌃[ 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 ⌘]⌃], ⌃⇧P, ⌃] or ⌃⇧P^ Close Bracket, ^ Asterisk, ⌃], ⌃*, ⌃] or ⌃*^ Close Bracket, ^ ⌥ Close Bracket, ⌃], ⌃⌥], ⌃] or ⌃⌥], 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 ⌃M or ⌃M⇧⌘M or ⇧⌘M⌃M or ⌃M^ ⇧ M, ⌃⇧M or ⌃⇧M^ ⇧ M, ⌃⇧M or ⌃⇧M.
You can also invoke this action (Move Caret to Matching Brace) with a Search Everywhere or Go to Action functionality:

Navigating to the borders of the closest higher code block
- To jump to the higher code block start, press ⌥⌘[ or ⌥⌘[⌘[ or ⌘[⌥⌘[ or ⌥⌘[^ Open Bracket, ⌃[ or ⌃[^ Open Bracket, ^ ⌥ Open Bracket, ⌃[, ⌃⌥[, ⌃[ or ⌃⌥[, with the caret at the current code block opening brace.
- To jump to the higher code block end, press ⌥⌘] or ⌥⌘]⌘] or ⌘]⌃], ⌃⇧P, ⌃] or ⌃⇧P^ Close Bracket, ^ Asterisk, ⌃], ⌃*, ⌃] or ⌃*^ Close Bracket, ^ ⌥ Close Bracket, ⌃], ⌃⌥], ⌃] or ⌃⌥], with the caret at the current code block closing brace.
Practically, you can just press ⌥⌘[ or ⌥⌘[⌘[ or ⌘[⌥⌘[ or ⌥⌘[^ Open Bracket, ⌃[ or ⌃[^ Open Bracket, ^ ⌥ Open Bracket, ⌃[, ⌃⌥[, ⌃[ or ⌃⌥[ or ⌥⌘] or ⌥⌘]⌘] or ⌘]⌃], ⌃⇧P, ⌃] or ⌃⇧P^ Close Bracket, ^ Asterisk, ⌃], ⌃*, ⌃] or ⌃*^ Close Bracket, ^ ⌥ Close Bracket, ⌃], ⌃⌥], ⌃] or ⌃⌥] as many times as you need, until the caret is positioned at the start or end of the desired code block.