#Less aggressive zig fmt?

1 messages · Page 1 of 1 (latest)

cursive summit
#

How can I configure zig fmt not to turn a

const ReallyLongType = union(SomeLongEnum) {
    long_member: int,
    other_long_member: int,
    even_longer_member: bool
};

into an unreadable mess of a line?

opal gust
#

Put a comma at the end of the items

cursive summit
#

I did?

#

after the last one too?

opal gust
#

Yeah it'll prevent it from putting it on a single line

cursive summit
#

lol ok

#

Thanks