I installed Visual Studio . 。 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;
// ...
}
Did you check Tools > Options > Text Editor, then C/C++ > Formatting > Indentation > Indent Braces?
This seems to fix the Braces part.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.