Sublime Forum

User snippets not working

#1

I’m creating my first set of user snippets but i’m having trouble getting them to work. As a test i created the following snippet and saved it to the User folder in Packages.

<snippet> <content><![CDATA[ this is a test ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>test</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.html</scope> </snippet>

When I do go to test it by selecting the html language, typing in the tab trigger text and hitting tab nothing happens? What am I doing wrong?

0 Likes

#2

Figured it out. The source should be:

<scope>text.html</scope>
0 Likes