Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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;
// ...
}
like image 315
Michail Avatar asked Jun 11 '26 20:06

Michail


1 Answers

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

This seems to fix the Braces part.

like image 178
emartel Avatar answered Jun 14 '26 09:06

emartel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!