Skip to content

Instantly share code, notes, and snippets.

@coreysan
Last active June 19, 2018 17:18
Show Gist options
  • Save coreysan/95ea743828e9372fc7e6adccbe1a6995 to your computer and use it in GitHub Desktop.
Save coreysan/95ea743828e9372fc7e6adccbe1a6995 to your computer and use it in GitHub Desktop.
Sublime Snippets
<snippet>
<content><![CDATA[
(${1:argument}) => {
${2}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>anonymous-arrow-function</tabTrigger>
<tabTrigger>arrow-function</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
console.log(`${1}: \${${2}}`);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>clt</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
console.log('${1}: ', ${1});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cll</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
console.log('${1}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cl</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
process.stdout.write('${1}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>psw</tabTrigger>
<tabTrigger>process-stdout.write</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment