I looked in the eclipse Java formatter (Java / Code Style / Formatter) but could not find a way to not have a new line after case
. Instead of
switch (a) {
case 0:
Other.doFoo();
break;
case 1:
Other.doBaz();
}
I want
switch (a) {
case 0: Other.doFoo();
break;
case 1: Other.doBaz();
}
Is there a way to do it and if so what is it?