On Sunday, 15 March 2015 at 00:51:30 UTC, Meta wrote:
Maybe nobody else does this, but I prefer to write switch cases in an indented block style.

switch (expr)
{
    case 0:
        //Do stuff
    end;

    case 1 .. case 9:
        //Do other stuff
    end;

    default:
        //Do default stuff
}




In the same way, I indent attribute labels in classes/structs. I'm positive almost nobody else does that, however, so it's probably not an option you want to enable.

class Test
{
    private:
        //Methods, members

    public:
        //etc.
}

I do the same.

On actual topic : having look at Eclipse C++ codestyle options may give many useful hints.

Reply via email to