Skip to content

Instantly share code, notes, and snippets.

@subhodi
Last active March 28, 2018 10:18
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 subhodi/781fa00cde4c404827a68ab9c76149e3 to your computer and use it in GitHub Desktop.
Save subhodi/781fa00cde4c404827a68ab9c76149e3 to your computer and use it in GitHub Desktop.
NODEJS console.log key bindings for vscode
// Place your key bindings in this file to overwrite the defaults
// 1. Ctrl+q to insert console.log()
// 2. Ctrl+shift+q to insert console.log("")
// 3. Ctrl+shift+y to insert console.log with yellow text config
// 4. ctlr=shift+i to insert License using fileHeader externsion
[
{
"key": "ctrl+q",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log($1)$0;"
}
},
{
"key": "ctrl+shift+q",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log(\"$1\")$0;"
}
},
{
"key": "ctrl+shift+y",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log('\\x1b[33m%s\\x1b[0m',$1)$0;"
}
},
{
"key": "ctrl+shift+i",
"command": "extension.insertFileHeaderCommentOther",
"when": "editorTextFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment