Nested SWITCH statements in VS

Published 03-11-2005 6:22 PM | jokiz
Have you tried doing a nested switch statements in Visual Studio.  I have tried this and VS is somewhat altering the proper indents.  I couldn’t find any flaw on using nested switch statements but the behavior is intriguing.  Below are some screenshots:

Filed under: , ,

Comments

# Craig said on October 4, 2007 10:47 PM:

I am experiencing the same thing.  This is really annoying, but i know of a way to "kinda" get around it.  If you go a head and write all of your code for the nested switch statements, and then manually tab the first case statement of the nested switch, and then select all of the lines below that and click edit->advanced->format selection it will correct the unusual indention.  I wish there was another way around this silly, overlooked error.

# Craig said on October 4, 2007 10:50 PM:

It seems Microsoft is aware of the issue and refuses to fix it.  See the link: connect.microsoft.com/.../ViewFeedback.aspx