Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use selector for choices #44

Closed
vnadot opened this issue Mar 24, 2021 · 0 comments
Closed

use selector for choices #44

vnadot opened this issue Mar 24, 2021 · 0 comments
Assignees

Comments

@vnadot
Copy link
Collaborator

vnadot commented Mar 24, 2021

  • use "${3|one,two,three|}" for choice and not eg. ${1:NO_ALARM }${2:MINOR }${3:MAJOR}

https://code.visualstudio.com/docs/editor/userdefinedsnippets
Choice
Placeholders can have choices as values. The syntax is a comma-separated enumeration of values, enclosed with the pipe-character, for example ${1|one,two,three|}. When the snippet is inserted and the placeholder selected, choices will prompt the user to pick one of the values.

@vnadot vnadot self-assigned this Mar 24, 2021
vnadot added a commit that referenced this issue Jun 7, 2021
@vnadot vnadot closed this as completed Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant