Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Snippets - chose from a list - input placeholder

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
fspafford Posted - Sep 16 2015 : 2:38:36 PM
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.

2   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 13 2015 : 12:38:31 AM
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.
accord Posted - Sep 16 2015 : 4:16:55 PM
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.

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