Skip to content

Make block-statements after case _: look nicer #695

@SomeRanDev

Description

@SomeRanDev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions