Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 I would like "Add missing cases" to add BEFORE

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
sitnduck Posted - Sep 12 2023 : 08:51:18 AM
Hello!
Right now, I have a visual snippet that fills in a basic "default" case in a switch case.

"Add missing cases" is good to use afterwards, but it adds everything BELOW the default. I'm really used to having default to be the last thing of the bottom, so it would be nice to be able to add the cases above the default, as right now I need to copy paste it every time.

For that matter, I swear I've seen a place where once you feel and what is in the "switch(xxx)" (the xxx part), it would automatically generate all the cases. But in my new install is not doing that anymore. I'm not sure if this is IntelliSense or visual assist�
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 12 2023 : 12:02:15 PM
Placing the missing cases above default is something we are thinking of doing:

case=91462

Surprisingly this hardly ever comes up, but now you have mentioned it, it does look odd.

I don't think VA has the ability to fill in the switch statement like you describe. Smart suggestions will suggest the members of the enum when you type "case " inside the switch statement. Or you can make an empty switch statement and then trigger "Add Missing Case Statements" on the empty switch statement to fill in all of the options.

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