views:

38

answers:

3

I recently upgraded to Visual Studio 2008 Professional, and it is not auto-indenting blocks of code when the block is closed }. This was a feature I found very useful with Express. How do I turn it back on? Thanks.

+2  A: 

Tools->Options->text editor->c#->formatting->select auto format on }

Vinay B R
All the auto-format options are already turned on. :(
Jim Fell
+2  A: 

It's.

Tools->Options->Text Editor->C#->Formatting-> Check Automatically format completed block on }

Mikael Svenson
All the auto-format options are already turned on. :(
Jim Fell
Weird. Try to reset your settings: Tools->Import/Export->Reset
Mikael Svenson
It seems to be working now. Thank you.
Jim Fell
A: 

Tools->Options->Text Editor->C#->Tabs->Indenting needs to be set to Smart, in addition to the "Automatically format completed block on }" setting already mentioned.

Joel Rondeau
Yes, it is already set to "Smart." :(
Jim Fell