Skip to content

Instantly share code, notes, and snippets.

@eccegordo
Last active August 29, 2015 14:20
Show Gist options
  • Save eccegordo/1f0f7e4c3f6c5b4be736 to your computer and use it in GitHub Desktop.
Save eccegordo/1f0f7e4c3f6c5b4be736 to your computer and use it in GitHub Desktop.
arrow function snippet sublime text
<snippet>
<content><![CDATA[
function(${1:input}){
${2://code}
}
]]></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.js</scope>
</snippet>
# Atom editor version
'.source.js':
'arrow function':
'prefix': '->'
'body': 'function(${1:input}) {\n\t${2://code}\n}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment