Curly braces autocomplete in Visual Studio 2012

aromasca picture aromasca · Aug 29, 2012 · Viewed 39.3k times · Source

Just migrated from vs10 to vs12 and it seems like the curly braces is completely broken along side with some other features like indentation in C# (?) for example type:

public static void myFunc() {

In visual studio 10 it would automatically add the closing curly brace for it. Is there some power tool or something that can fix this and give the same behavior? the Brace Completer requires to hit Enter after the function for it to add the closing braces.

Also in tools->options->text-editor->c#->formatting-> automatically format completed block on } is turned on by default..

Answer

Bob Horn picture Bob Horn · Mar 12, 2014

If anyone is having this issue with VS 2013, there is a setting for this now. I just reset my VS settings and it started to complete my braces again. For me, it wasn't productivity power tools. You can turn it on/off here:

enter image description here