Automatic Delimiter Highlighting

Menu:  Tools -> Options -> Text Editor -> General
Versions:  2008,2010
Published:  9/7/2010
Code:  vstipEdit0071

 

Make sure to check out the Windows Phone Developer Portal!

 

You have probably seen Automatic Delimiter Highlighting in action before.  It shows up when you close parens, curly brackets, and other similar delimiters:

C#

image

 

VB

image

 

 

 

 

Changing Colors

You can modify the colors to suit your need by going to Tools -> Options -> Environment -> Fonts and Colors and selecting "Brace Matching (Rectangle)":

image

 

 

I'll change the background to lime green and click OK:

image

 

 

We can see the new result:

C#

image

 

VB

image

 

 

 

Turning If Off

If you don't like this feature, you can go to Tools -> Options -> Text Editor -> General and uncheck the "Automatic delimiter highlighting" option:

image