Sublime Forum

Snippets sometimes don't work

#1

When I press tab to trigger a snippet, sometimes it works fine and sometimes it just moves the cursor to the last line.

I haven’t figured out what the pattern is. It’s very annoying though.

I use Sublime Text 3.

0 Likes

#2

Bump for answer.

0 Likes

#3

a list of plugins packages you have installed?

0 Likes

#4

Hey,

I have the pretty the same problem, be more precisely - with CSS snippets.
For example, here’s the code example snippet

<snippet>
	<content><![CDATA[
/*! ${1:title} ---------------------- */
	 ${2}
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>minicmm</tabTrigger>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<!-- <scope>source.css</scope> -->
</snippet>

I’ve tried to save this snippet in ‘User’ folder and ‘CSS’ folder inside ‘User’ folder as well.
Now problem appears … tabTrigger doesn’t work neither in CSS files nor wher scope is uncommented (http://i.imgur.com/R8SWWHy.jpg) but it works, for example, in HTML file with HTML syntax but doesn’t show help/sugesstion window (http://i.imgur.com/c385Obe.jpg)


SublimeText 3 with:

  • Bracket Highlighter
  • DocBlockr
  • Emmet
  • Package Control
  • Side Bar
  • TortoiseSVN
  • PlainTasks
  • Nettus Fetch

Any ideas?

0 Likes