Last Updated: February 25, 2016
·
1.642K
· koryteg

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>