Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 auto generated switch

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Vertexwahn Posted - Sep 04 2011 : 8:13:54 PM
given the following code:

enum Suit { Diamonds, Hearts, Clubs, Spades };


somebody is coding a switch statement like this:


Suit suit = getUserInput();

switch(suit)


Visual Asssist should automatically generate all cases like this:


Suit suit = getUserInput();

switch(suit)
{
  case Diamonds:
     break;

  case Hearts:
     break;

  case Clubs:
     break;

  case Spades:
     break;

   default:
      break;
}
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Aug 21 2015 : 12:27:10 AM
case=19137 is implemented in build 2073 as the command "Add Missing Case Statements"
feline Posted - Sep 05 2011 : 1:20:24 PM
We are considering adding a refactoring to do this at some point:

case=19137

For now, VA's Smart Suggestions should help you while manually writing the switch statement:

http://www.wholetomato.com/products/features/smartSuggestions.asp

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000