dfmt options

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Sat Mar 14 22:54:30 PDT 2015


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.


More information about the Digitalmars-d mailing list