Skip to content

Instantly share code, notes, and snippets.

@ibnumardini
Last active June 6, 2023 08:06
Show Gist options
  • Save ibnumardini/a62ef5c2678bedbf06cd0632ce75cca1 to your computer and use it in GitHub Desktop.
Save ibnumardini/a62ef5c2678bedbf06cd0632ce75cca1 to your computer and use it in GitHub Desktop.
Print something in Javascript with more informative and pretty
{
"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"
}
}
@ibnumardini
Copy link
Author

Just type pcl or pcle to execute the snippet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment