I tried using snippets in Sublime Text - I created a document hello.sublime-snippet in /Users/davidfaux/Library/Application Support/Sublime Text 2/Packages/User:
<snippet>
<content><![CDATA[
alert("hello {$1}");
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.js</scope> -->
</snippet>
Then, I created a new file called hello.js on my Desktop:
document.onload = function() {
hello
}
However, when I press tab after hello, nothing happens. Why not? I tried setting "auto_complete_commit_on_tab": true in my User settings, and this attribute seems to be working for autocomplete.
Any advice on directions for debugging appreciated!