News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Auto-indentation problem with class access specifiers

Started by Nullu, January 18, 2015, 05:32:45 PM

Previous topic - Next topic

Nullu

I have searched everywhere for the answer to this, and it's driving me absolutely crazy.

Code::Blocks very own wiki states:

QuoteIn 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 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.