Search code examples
xcodekeyboard-shortcuts

Jump to matching brace in Xcode


In Xcode, if the cursor is on one brace (or bracket or parenthesis) of a matched pair, what keyboard shortcut will jump to the matching brace? Or how can I create such a shortcut?

An example of the feature I'm after is the "goto brace" shortcut in Visual Studio.


Solution

  • There is a Balance Delimiters menu command. So simply assign it any keyboard shortcut you prefer (all commands have customizable key bindings). You can also double-click the first delimiter to perform the same action.