Community
Participate
Working Groups
Consider the following, incomplete switch statement: --------------------------------------------------------------- public class Default { void m() { int i = 1; switch (i) { cas defaul } } } --------------------------------------------------------------- When I complete it by typing the missing "e" in "case", the following indentation is applied automatically, which is nice: --------------------------------------------------------------- public class Default { void m() { int i = 1; switch (i) { case defaul } } } --------------------------------------------------------------- The same isn't done for default: --------------------------------------------------------------- public class Default { void m() { int i = 1; switch (i) { case default } } } --------------------------------------------------------------- When using the formatter on the complete statement, it re-formats the default statement nicely, but it would be cool if it were already done while typing "default": --------------------------------------------------------------- public class Default { void m() { int i = 1; switch (i) { case 1: default: } } } ---------------------------------------------------------------
*** This bug has been marked as a duplicate of bug 520054 ***