Created
May 18, 2016 18:56
-
-
Save vancetran/63dc6dad03f1ed00e6ce7222b633ae12 to your computer and use it in GitHub Desktop.
Atom Snippets (console log shortcuts)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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