Closed IanCaunce closed 7 years ago
Hm, that sucks. I've never used snippets this way, I use them as you type, as shown in this screenshot. The reason I added descriptions is to give an idea, what the result will be. Some icon fonts use <span>
or <i>
tags, other use class names or data attributes.
Example:
You can also see, that using snippets “my way” works the opposite, the description isn't the main selector but provides additional information.
I'm not sure what to do about this. Actually I've been thinking about going back to use .sublime-completions
, since it's a more maintainable format.
Previously you could press
Ctrl
+Shift
+p
to bring up the command pallet, type something likefa-plus
and pressenter
to place the snippet into the current tab.Recently I am unable to do this anymore and I am unsure which release caused it. The snippets still appear in the command pallet but they only display and are searchable by the opening html tag of the snippet.
See screenshot
Edit: I believe the issue was caused in this commit ea42f83807d6a79ee406332c365e00f300a47872 when the descriptions where added. Reading sublimes docs it seems that if a description isn't present, the name will be used in the snippet menu explaining the change.