When typing code like this, sublime auto indentation occurs when pressing Enter but this is not necessary. How do I turn this off? Tried tweaking with auto_indentation and smart_indent but nothing seemed to work.
Thanks

When typing code like this, sublime auto indentation occurs when pressing Enter but this is not necessary. How do I turn this off? Tried tweaking with auto_indentation and smart_indent but nothing seemed to work.
Thanks

setting smart_indent to false should definitely work - I tried it and it no longer indented after a for loop.
That said, I guess the auto indentation rules for C++ could be tweaked to correctly recognize when the for loop is followed by a single statement on the same line as they are very naive atm (IIRC, PHP has more advanced rules which could perhaps be borrowed)