I am using Visual Studio 2012 for developing C++ code. I am used to format my code as follows:
void
SomeThing::DoesSomething()
{
// brilliant code
}
However, when using VS2012 code formatter, it always turns my code into this:
void
SomeThing::DoesSomething()
{
// still brilliant
}
Is there a way to avoid this indentation of the ClassName::Func() in the line below the return type without completely turning off auto indentation?
This is as close as you can get to your desired settings:
Tools -> Options -> Text Editor -> C/C++ -> Tabs -> Indenting -> Block
It doesn't turn off indentation (when you are coding at 1 tab and press enter, it will still be at 1 tab), but it stops it from indenting things for you.
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With