Hello,
I'm using Windows 8.1 64-bit. When simply looking through one link after another after a Google search for a "switch" statement, probably 90% of the examples indent the case labels from the column in which the switch keyword itself starts, that is:
switch (something)
{
--->case ...:
However, by default the Code::Blocks editor for some reason follows the minority 10% and does not do this indent. I've looked at the "General settings" item on the "Configure editor" page and about the only thing that appears to be related is the "Smart indent" checkbox, which is checked by default. However, unchecking it eliminates all smart indenting, most of which I want to use. Even though Microsoft's Visual Studio does not by default auto-indent for case labels either (which I find very strange since all of their switch code examples do indent them!), it does provide an option for them to be automatically indented. I'm sure I'm just missing something in Code::Blocks and I'd appreciate it if someone would point out where I can select that case labels be indented. I'm not interested in a religious war as to why indenting vs non-indenting is better or more correct but am merely looking for how to change the editor's behavior.
Thanks,
Ray