Multiple options for snippet variables


#1

So, recently, I’ve been doing work where I need to place icons in HTML. I have a limited list of icons to choose from; it’s a single word + the extension (.png). However, the list is extensive and I find myself referencing it constantly to build these pages. I’ve created a snippet, but I was wondering if there is a feature or plugin that would allow for a syntax like this:

<img src="${1:"icon1","icon2","icon3"}.png" alt="" />

where the options would show in the autocomplete area and you can choose them. Any help would be appreciated!


#2

There isn’t a feature in Atom for that. I don’t know of a package, but one could exist.