Home Download Buy Blog Forum Support

Snippets' tabtrigger no longer working in css files in ST3

Snippets' tabtrigger no longer working in css files in ST3

Postby jaronbarends on Fri Jul 19, 2013 12:09 pm

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: Select all
<snippet>
   <content><![CDATA[
/*-- Start ${1} --*/

   ${2}

/*-- End ${1} --*/
   ]]></content>
   <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
   <tabTrigger>csscomm</tabTrigger>
   <!-- Optional: Set a scope to limit where the snippet will trigger -->
   <!-- <scope>source.python</scope> -->
</snippet>


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?
jaronbarends
 
Posts: 1
Joined: Fri Jul 19, 2013 12:02 pm

Re: Snippets' tabtrigger no longer working in css files in ST3

Postby thomasjbradley on Wed Oct 02, 2013 8:49 pm

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:

Code: Select all
cssviewport + tab


Becomes:

Code: Select all
cssviewport: ;
thomasjbradley
 
Posts: 2
Joined: Wed Oct 02, 2013 8:46 pm

Re: Snippets' tabtrigger no longer working in css files in ST3

Postby skuroda on Thu Oct 03, 2013 3:30 am

Probably caused by a plugin. Possibly emmet?
skuroda
 
Posts: 685
Joined: Fri Oct 05, 2012 8:11 am

Re: Snippets' tabtrigger no longer working in css files in ST3

Postby thomasjbradley on Wed Oct 16, 2013 12:33 am

Yep. It's Emmet. Thanks, I didn't even think of that.
thomasjbradley
 
Posts: 2
Joined: Wed Oct 02, 2013 8:46 pm

Re: Snippets' tabtrigger no longer working in css files in ST3

Postby sampson1952 on Sun Aug 10, 2014 1:25 am

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.
sampson1952
 
Posts: 1
Joined: Sun Aug 10, 2014 1:15 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], rgidney, Yahoo [Bot] and 30 guests