Community
Participate
Working Groups
In Formatter / Control Statements / 'if else' I can select to keep return or throw clause on one line, but not to keep break or continue clause on one line. e.g. the following (desired) format: if (a==1) return; if (a==2) throw new IllegalArgumentException(); if (a==3) break; if (a==4) continue; is currently formatted as: if (a==1) return; if (a==2) throw new IllegalArgumentException(); if (a==3) { break; } if (a==4) { continue; } which does not look good. -> please provide a "Keep 'break' or 'continue' clause on one line" checkbox in Formatter / Control Statements / 'if else'
I agree it would be nice to have this fixed. But this is not something we can commit to work on at this point. You are welcome to post a patch, though.