Automatic Brace Matching

The Visual Studio shortcut of the day is CTRL+] which allows you to jump between two matching braces. The name is somewhat misleading since brace matching works not just for braces but also includes parentheses and all other pair statements like #region#endregion, #if and so on.

All you have to do is move the cursor to either the left or right of a brace and press CTRL+] to toggle moving between the two ends in the code editor.

A word of warning to Visual Basic users, you guys don’t uses braces so you don’t get the Automatic Brace Matching feature. Ouch.

Automatic Brace Matching

One thought on “Automatic Brace Matching

Comments are closed.