Skip to content

Instantly share code, notes, and snippets.

@subhodi
Last active Mar 28, 2018
Embed
What would you like to do?
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