Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: UberNewb on July 01, 2013, 04:10:34 am
-
Since upgrading from CB 12.11 from 8.05 I have noticed that smart indent does not work the same as it used to.
(assuming indent level of 3 spaces)
Previous behaviour (pressing enter after the opening curly brace of an if statement leaves the pipe one indentation level greater than before) :
Current behaviour (pressing enter after the opening curly brace indents two levels) :
Is this a bug, or a setting I need to fix?
-
Bug.
-
I can confirm the behaviour is still there in the latest nightly, 9158 from June 16, 2013
-
Can you cplease test whether it works correctly, if you delete the indendation with backspaces until the cursor is directly after the brace and press enter ?
In this case the double-indendation does not happen here.
This should not be a workaround, but a hint for (an)other dev(s) to find the issue.
-
Yes, oddly enough backspacing back to the curly brace and pressing enter again only indents one level...