How to Find Xcode Matching Brace, Bracket or Parenthesis

This tip I stumbled upon while in Xcode and I inadvertently double clicked on a brace and the matching brace and code sandwiched between was highlighted. Intrigued, I tried the same with parenthesis and brackets and it worked as anticipated.

Should there be no match, Xcode responds with a beep. It couldn’t be easier to find matching code delimiters in Xcode.

As an example, here is a line of code with a handful of parenthesis:

UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0


At a glance, it can be hard to find who goes with what. A simple double tap on one of the nested parenthesis and you get this:
Xcode match braces, parenthesis and brackets

In all my years with Xcode it’s surprising this never came up earlier.