문제

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.

도움이 되었습니까?

해결책

It's.

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

다른 팁

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

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top