Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

Automatic Brace Matching

Automatic brace matching gives you immediate feedback on misplaced brackets or open-ended code segments. This feature is always in effect; there is no related menu command or other option to disable it.

Automatic brace matching recognizes the following pairs:

[C#]
( ) Parentheses
[ ] Brackets
{ } Braces
#if, #else and #endif Conditional expression
[Visual Basic]
( ) Parentheses
[ ] Brackets
{ } Braces
<> Angle brackets
[C++]
( ) Parentheses
[ ] Brackets
{ } Braces
< > Angle brackets
#if, #else and #endif Conditional expression

When you type a closing bracket, both it and its matching bracket remain highlighted until you type another key or move the cursor. This makes visually identifying code blocks much easier. In addition, this may help identify mismatched or missing brackets.

In Visual C++ and Visual C#, by placing the cursor to the left of a brace and pressing CTRL+], the cursor will move to the matching brace.

See Also

Using IntelliSense

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.