Hi,
in previous versions of VS it auto-indented my C++ code
like this:
if(cond)
{
f();
}
VS2008 does it like this:
if(cond)
{
f();
}
I just don't like the latter. (Not to speak of several
100kLoC that are formatted in the old style.)
Did I mess up some setting? Is there some way to get the
old behavior back? Or will I have to live with block
indenting plus manual adjusting?
TIA,
Schobi
PvdG42 - 18 Jul 2008 18:02 GMT
> Hi,
>
[quoted text clipped - 18 lines]
>
> Schobi
Look in Tools->Options...
Look under Text Editor->C/C++->Formatting
Is "Indent Braces" checked by any chance?
Hendrik Schober - 18 Jul 2008 21:35 GMT
>[...])
>> Did I mess up some setting? Is there some way to get the
[quoted text clipped - 4 lines]
> Look under Text Editor->C/C++->Formatting
> Is "Indent Braces" checked by any chance?
Thanks a lot. I had expected this on the "Tabs" page...
I have no idea how I managed to mess this up.
Schobi