Skip to content

Instantly share code, notes, and snippets.

@codexico
Created March 18, 2020 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codexico/38931f9e78976e6062c12cb273bdc56b to your computer and use it in GitHub Desktop.
Save codexico/38931f9e78976e6062c12cb273bdc56b to your computer and use it in GitHub Desktop.
vscode snippets for console.log
{
"Print object to console with label": {
"prefix": "cob",
"body": [
"console.log(\"${1:this} = \", ${1:this});",
"$0"
],
"description": "Log object to console"
},
"Print string to console": {
"prefix": "cst",
"body": [
"console.log(\"${1}\");",
"$0"
],
"description": "Log string to console"
},
"Print title to console": {
"prefix": "ctit",
"body": [
"console.log(\"=================\");",
"console.log(\"${1}\");",
"console.log(\"=================\");",
"$0"
],
"description": "Log string to console"
},
"Print JSON to console": {
"prefix": "cjson",
"body": [
"console.log(\"${1:this} = \", JSON.stringify(${1:this}, null, 2));",
"$0"
],
"description": "Log string to console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment