Skip to content

Instantly share code, notes, and snippets.

@rek
Created July 15, 2015 09:57
Show Gist options
  • Save rek/9b1928fb75c61969a927 to your computer and use it in GitHub Desktop.
Save rek/9b1928fb75c61969a927 to your computer and use it in GitHub Desktop.
Sublime Text - Snippits
<snippet>
<content><![CDATA[
});
]]></content>
<tabTrigger>w</tabTrigger>
<description>Close callback function: });</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.javascript</scope> -->
</snippet>
<snippet>
<content><![CDATA[
console.log(${1});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>;</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.javascript</scope> -->
<description>console.log</description>
</snippet>
<snippet>
<content><![CDATA[
.done(function(${1}) {
${2}
});
]]></content>
<tabTrigger>]</tabTrigger>
<description>done function</description>
</snippet>
<snippet>
<content><![CDATA[
_.each(${1}, function(value, key) {
${2}
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>e</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>each function</description>
</snippet>
<snippet>
<content><![CDATA[
, function() {
${1}
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>,</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>object function</description>
</snippet>
<snippet>
<content><![CDATA[
: function() {
${1}
},
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>.</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>object function</description>
</snippet>
<snippet>
<content><![CDATA[
/**
* ${1}
*
* @param {string} ${2}
*/
]]></content>
<tabTrigger>/</tabTrigger>
<description>doc comment</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment