Escape $ for jQuery snippets in Sublime Text
or you will get this sweet error:
Error parsing content for snippet Packages/User/iife.sublime-snippet: Empty key
this is because snippets use $ for your quick "tab to" spots. your snippets
quick example of my IIFE snippet:
<snippet>
<tabTrigger>iife</tabTrigger>
<content><![CDATA[
(function (\$) {
\$(document).ready(function () {
${1:isolated jquery safe code}
});
})(jQuery);
]]></content>
</snippet>
Written by Kory Tegman
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublime text
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#