Last active
March 28, 2018 10:18
-
-
Save subhodi/781fa00cde4c404827a68ab9c76149e3 to your computer and use it in GitHub Desktop.
NODEJS console.log key bindings for vscode
This file contains 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
// 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