I would like to create a yasnippet snippet as follow: pressing weather
I would like that would be inserted the following text current weather =
with the cursor after the =
(this can be done with current weather = $1
).
I would so like that a context menu with some suggestion will appear, like sunny
, rainy
, and so on.
How can I do this? Have I got to use in some ways autocomplete or company? Thank you.