Last active
June 6, 2023 08:06
-
-
Save ibnumardini/a62ef5c2678bedbf06cd0632ce75cca1 to your computer and use it in GitHub Desktop.
Print something in Javascript with more informative and pretty
This file contains 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
{ | |
"PRETTY BASIC CONSOLE LOG": { | |
"prefix": "pcl", | |
"body": [ | |
"console.log({", | |
"\tscene: \"$TM_FILENAME - $TM_LINE_NUMBER\",", | |
"\ttrunk: $1", | |
"});$2" | |
], | |
"description": "Print log with pretty way" | |
}, | |
"PRETTY ERROR CONSOLE LOG": { | |
"prefix": "pcle", | |
"body": [ | |
"console.error({", | |
"\tscene: \"$TM_FILENAME - $TM_LINE_NUMBER\",", | |
"\ttrunk: $1", | |
"});$2" | |
], | |
"description": "Print error log with pretty way" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just type
pcl
orpcle
to execute the snippet