Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Nullu on January 18, 2015, 05:32:45 pm

Title: Auto-indentation problem with class access specifiers
Post by: Nullu on January 18, 2015, 05:32:45 pm
I have searched everywhere for the answer to this, and it's driving me absolutely crazy.

Code::Blocks very own wiki (http://wiki.codeblocks.org/index.php?title=Coding_style) states:

Quote
In class declarations, the keywords public:, protected:, and private: should be indented. The same goes for all the class members.

This is the style I happen to follow with my own coding. Yet when I type an access specifier in my class in the editor, such as
Code
public:
, then hit enter, it automatically removes the indentation. I have no idea why it's doing this, or why Code::Blocks doesn't even conform to its own formatting standards, but if anyone can help me fix this, it would be much appreciated.

Using version 12:11, 32-bit on Windows 7.