Skip to content

Instantly share code, notes, and snippets.

@robpataki
Last active September 23, 2016 19:51
Show Gist options
  • Save robpataki/68713f8eddb63ecba57cc6cf72db307d to your computer and use it in GitHub Desktop.
Save robpataki/68713f8eddb63ecba57cc6cf72db307d to your computer and use it in GitHub Desktop.
Atom snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'.source.js':
'Expect - it should':
'prefix': 'should'
'body': 'it(\'should $1\', () => {\n\t\n});'
'Expect - describe':
'prefix': 'describe'
'body': 'describe(\'$1\', () => {\n\t\n});'
'ES6 - Arrow':
'prefix': '=>'
'body': '() => {$1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment