The 2025 Wheel Reinvention Jam is in 10 days. September 22-28, 2025. More info

Indenting CPP Public and Private

So I've been looking into the auto indent and trying to figure out how it works, however I'm still fairly new to this so I can't quite figure out how to have the public: and private: modifiers in CPP classes to indent on the next line. Any help?