Sublime Forum

Snippets not working

#1

Hey all,

I’ve suddenly got a problem making use of a snippet I’ve had for a while. Instead of making the snippet, it just autocompletes the tab trigger, adds a colon and a semicolon as though I were making a CSS declaration.

<snippet>
	<content><![CDATA[
/* $1
================================ */

$2
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>csec</tabTrigger>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<scope>source.css, source.scss</scope>
</snippet>

I have no trouble with my other snippets. This was under User/CSS, but just tried moving it to User/ with no change. If anyone has any suggestions, I’d much appreciate hearing them. Also, I apologize if the answer is obvious. I’ve been coding almost non-stop since Monday morning and am kind of an idiot to begin with.

0 Likes

#2

hmm, works for me - what happens if you disable all other packages? i.e. maybe a package has somehow started conflicting with your snippet?

1 Like

#3

I will look into this! Thanks for the suggestion.

0 Likes