Skip to content

Instantly share code, notes, and snippets.

@betacar
Created July 26, 2015 14:26
Show Gist options
  • Save betacar/60fe4b8f79088f477180 to your computer and use it in GitHub Desktop.
Save betacar/60fe4b8f79088f477180 to your computer and use it in GitHub Desktop.
Sublime Text snippets
<snippet>
<content><![CDATA[
console.log '######################################################################'
console.log '$1', $2
console.log '######################################################################'
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>console</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.coffee</scope>
</snippet>
<snippet>
<content><![CDATA[
console.log('######################################################################');
console.log('$1', $2);
console.log('######################################################################');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>console</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.javascript</scope>
</snippet>
<snippet>
<content><![CDATA[
describe '$1', ->
$2
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>describe</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.coffee</scope>
</snippet>
<snippet>
<content><![CDATA[
describe('$1', function() {
$2
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>describe</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.javascript</scope>
</snippet>
<snippet>
<content><![CDATA[
it '$1', ->
$2
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>it</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.coffee</scope>
</snippet>
<snippet>
<content><![CDATA[
it('$1', function() {
$2
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>it</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.javascript</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment