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

Reply via email to