Visual Studio 2013 Preview: C++ Automatic Brace Completion

5-16-2012 3-08-49 PM

One of the new features in VS2013 for C++ Developers is automatic brace completion. We’ve had this in other languages for a while and this is an example of the C++ language gaining IDE parity with VB and C#.

 

Essentially, if you type any of the following characters:

{ (curly brace)

[ (square bracket)

( (parentheses)

' (single quote)

" (double quote)

 

The editor will automatically add the appropriate closing character to complete the set as you type.

 

 

Turning it Off

If you don’t like this feature, you can always turn it off by going to Tools | Options | Text Editor | C/C++ | General and deselecting Automatic Brace Completion:

5-17-2012 2-05-24 AM