Created
March 18, 2020 00:34
-
-
Save codexico/38931f9e78976e6062c12cb273bdc56b to your computer and use it in GitHub Desktop.
vscode snippets for console.log
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
{ | |
"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