Skip to content

Instantly share code, notes, and snippets.

@vancetran
Created May 18, 2016 18:56
Show Gist options
  • Select an option

  • Save vancetran/63dc6dad03f1ed00e6ce7222b633ae12 to your computer and use it in GitHub Desktop.

Select an option

Save vancetran/63dc6dad03f1ed00e6ce7222b633ae12 to your computer and use it in GitHub Desktop.

Revisions

  1. vancetran created this gist May 18, 2016.
    28 changes: 28 additions & 0 deletions atom-snippets.cson
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    # 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'
    #
    '.source.js':
    'Console log color':
    'prefix': 'cc'
    'body': """console.log('%c yourTextHere ', 'background: black; color: lime');"""
    'Console log color red':
    'prefix': 'ccr'
    'body': """console.log('%c yourTextHere ', 'background: salmon; color: black');"""
    'Console log color green':
    'prefix': 'ccg'
    'body': """console.log('%c yourTextHere ', 'background: lime; color: black');"""
    'Console log color blue':
    'prefix': 'ccb'
    'body': """console.log('%c yourTextHere ', 'background: aqua; color: black');"""