Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Snippets - chose from a list - input placeholder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

fspafford
Senior Member

USA
45 Posts

Posted - Sep 16 2015 :  2:38:36 PM  Show Profile  Reply with Quote
Is there anyway to define a list of values for an input placeholder?

When a snippet is triggered, I would like to be prompted to select one of the list values.

We sometimes add text to categorize TODOs, and this is where a list of values would come in handy.


Regards,

Frank

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 16 2015 :  4:16:55 PM  Show Profile  Reply with Quote
What Visual Studio version are you using?

From VS2010 and above, you can now have in-place snippet input: you type your inputs in the source editor thus you can use VA snippets. If you create more VA snippets with the same shortcuts, you will be able to select which one to use, from the listbox, once the snippet is triggered by typing it's shortcut. You can use a short shortcut e.g. "t" or "to" to trigger the listbox.

If you have questions about this, please let me know.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Oct 13 2015 :  12:38:31 AM  Show Profile  Reply with Quote
Another thought on this, have you tried setting a default value for the prompt? If you use a comma separated list, it should be fairly quick and easy to select the items you don't want and delete them, leaving just the item you do want.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000