Michail
Michail

Reputation: 146

Changing autoformatting in VS2012


I installed Visual Studio 2012. How can I do disable auto formatting code (C++)?
When I write code, VS puts spaces where it wants.
If disabling is impossible, how can I change the formatting to:


int a = MyFunc();
switch (a)
  {
    default:
      break;
    // ...
  }



but studio remaking this:

int a = MyFunc();
switch (a)
{
default:
  break;
// ...
}

Upvotes: 3

Views: 630

Answers (1)

emartel
emartel

Reputation: 7773

Did you check Tools > Options > Text Editor, then C/C++ > Formatting > Indentation > Indent Braces?

This seems to fix the Braces part.

Upvotes: 1

Related Questions