spoike
1/22/2014 - 9:36 AM

Sublime Text snippet for creating an RequireJS/AMD define block in javascript files. Create with Tools > New Snippet... and save it as `defi

Sublime Text snippet for creating an RequireJS/AMD define block in javascript files. Create with Tools > New Snippet... and save it as define_amd.sublime-snippet.

<snippet>
    <content><![CDATA[define([${1}], function(${2}) {
    ${0}
});]]></content>
    <tabTrigger>def</tabTrigger>
    <scope>source.js</scope>
    <description>Adds an RequireJS/AMD define block</description>
</snippet>