haxe-formatter icon indicating copy to clipboard operation
haxe-formatter copied to clipboard

Make block-statements after `case _:` look nicer

Open SomeRanDev opened this issue 2 months ago • 0 comments

Describe the Feature
If a case _: has a block statement after it, I would like it to look like this. However, there doesn't appear to be a way to have it be formatted this way.

switch(number) {
    case 1: {
        trace("Hello");
    }
}

Instead, it always gets formatted to this. It feels like such a waste of space.

switch(number) {
    case 1:
        {
            trace("Hello");
        }
}

I could remove the block expression, but I think it looks so much cleaner with larger switch statements.

SomeRanDev avatar Oct 02 '25 22:10 SomeRanDev