Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Last active June 29, 2020 17:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadawais/37eb4e26c42cc5cb33511d52080a8910 to your computer and use it in GitHub Desktop.
Save ahmadawais/37eb4e26c42cc5cb33511d52080a8910 to your computer and use it in GitHub Desktop.
VSCode Console Log Snippets
{
"Console Log with Name": {
"prefix": "lg",
"body": ["console.log(`${1:variable}`, ${1:variable});"],
"description": "Console Log with name of a variable"
},
"Console Log with String": {
"prefix": "lgs",
"body": ["console.log(`${1:STRING_HERE}`);"],
"description": "Console Log string"
}
}
@ahmadawais
Copy link
Author

ahmadawais commented Jun 24, 2020

  • Open command palette COMMAND (⌘) + SHIFT (⇧) + P
  • Search for Preference: Configure User Snippets
  • Then go to the JavaScript Snippets
  • and add the two snippets above (tip: ignore the enclosing { and }

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