I'd like to vote for this as well. I realize that it isn't logically consistent since the code after a case is a statement sequence and not a statement as it would be after an if. That said the vast majority of uses of case statements treat the code after a case statements as a logical block whether it is enclosed in braces or not.
Think of supporting this style as a sop to all of those who think that C style unstructured case statements are an abomination that should never been allowed to make it into Java. -- Mark -----Original Message----- From: Jordan Zimmerman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 03:08p To: '[EMAIL PROTECTED]' Subject: [Eap-list] switch statement issue This issue with the switch statement has been around for a while... The "indent case from switch" preferences doesn't work correctly for me. For clarity, I always use braces in my case statements: switch ( x ) { case 1: { // code break; } case 2: { // code break; } } If "indent case from switch" is checked, IDEA formats as: switch ( x ) { case 1: { // code break; } case 2: { // code break; } } If "indent case from switch" is not checked, IDEA formats as: switch ( x ) { case 1: { // code break; } case 2: { // code break; } } =========================== Jordan Zimmerman Altura International Catalog City _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
