Sublime Forum

Snippets' tabtrigger no longer working in css files in ST3

#1

I have created quite a lot of css snippets in ST2, but somehow, these snippets tabtriggers don’t seem to work in css files in ST3?

Take this snippet, for example:

[code]
<![CDATA[
/– Start ${1} –/

${2}

/– End ${1} –/
]]>

csscomm


[/code]

typing “csscomm” and hitting tab worked fine in ST2, and still works fine in other file types in ST3. It just doesn’t work in css files. I have tried to change the scope to source.css, but that didn’t make a difference. Since the problem only occurs in css, I’m thinking there may be another shortcut assigned to the tab key in css files which prevents the snippets to be inserted?

0 Likes

#2

Any luck figuring it out?
I’m having the exact same issue and haven’t found a way around it yet.

When I type one of my tabTriggers—in a CSS file—and hit tab it seems to assume it’s a property:

cssviewport + tab

Becomes:

cssviewport: ;
0 Likes

#3

Probably caused by a plugin. Possibly emmet?

0 Likes

#4

Yep. It’s Emmet. Thanks, I didn’t even think of that.

0 Likes

#5

Did you find a solution to this. After I installed emmet my snippet tabtriggers no longer work. I can select the snippet from the snippet list and it will work, but not by the trigger. I presume emmet stepped on the tab binding.

Can anyone help me know where to look to try and resolve this? I hope it doesn’t mean that emmet and snippet tabtrigger are mutually exclusive.

0 Likes