Skip to content

Instantly share code, notes, and snippets.

@vancetran
Created May 18, 2016 18:56
Show Gist options
  • Save vancetran/63dc6dad03f1ed00e6ce7222b633ae12 to your computer and use it in GitHub Desktop.
Save vancetran/63dc6dad03f1ed00e6ce7222b633ae12 to your computer and use it in GitHub Desktop.
Atom Snippets (console log shortcuts)
# 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');"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment