Skip to content

Instantly share code, notes, and snippets.

@ahmadawais

ahmadawais/javascript.json

Last active Jun 29, 2020
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@ahmadawais 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
You can’t perform that action at this time.