Create missing switch cases in AppCode - formatting

298 Views Asked by At

There's a great "Create missing switch cases" feature in AppCode. How can I change formatting of the added cases? I would like to add new lines before breaks. Currently I'm getting the following code:

    switch(a) {
        case A:break;
        case B:break;
    }

I would like to have instead:

    switch(a) {
        case A:
            break;
        case B:
            break;
    }

Ideally, it would be great to have an option to replace break with return for all the cases at once. Is there a way to configure it?

1

There are 1 best solutions below

2
On

Go to Preferences (CMD+,) and find next: screenshot I'm using EAP but there same options in latest release. Just search for "Code style".