Author |
Topic |
|
fspafford
Senior Member
USA
45 Posts |
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.
|
Regards,
Frank |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
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. |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|