Sublime Forum

Original ST3 "html" snippet won't work after Emmet installation. Why?

#1

I’m puzzled by the fact that according to this https://docs.emmet.io/cheat-sheet/ Emmet doesn’t have a snippet with the trigger word html. But nevertheless the original Sublime Text html snippet won’t work after installing Emmet. Why?

Updated

In the above cheat-sheet it’s said that All unknown abbreviations will be transformed to tag, e.g. foo → <foo></foo>. And this is exactly what happens: html,tab results in <html></html>

Does it mean that when Emmet is installed I’m no longer able to use the original ST snippets for html scope?

Thank you.

0 Likes

#2

I don’t use that package personally, but my guess based on various issues that I’ve seen reported over the last couple of years would be that this is the case, yes.

More specifically I think that package binds the Tab key to its own functionality, which would block all standard functions that use this key. Presumably it would be possible to bind the commands that are normally used for snippet expansion to different keys to allow them to be used, though.

There may also be configuration possible in the Emmet package that would allow more control as well.

1 Like

#3

I guess the easiest way to override the default snippet completion behavior for the HTML snippet would be to define a user binding with a context of checking against the preceding text with the regex html$. Would provide an example, but I’m not at a pc currently.

0 Likes