Created
January 16, 2022 23:50
-
-
Save colinhacks/be04d453a0552b2c11615096651087ee to your computer and use it in GitHub Desktop.
VSCode shortcuts for console.log and JSON.stringify
This file contains hidden or 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
// keybindings.json | |
// Command Pallette > Open Keyboard Shortcuts (JSON) | |
[ | |
{ | |
"key": "cmd+shift+l", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "console.log(${TM_SELECTED_TEXT}$1)$0;" | |
} | |
}, | |
{ | |
"key": "cmd+shift+j", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "JSON.stringify(${TM_SELECTED_TEXT}$1, null, 2)$0" | |
} | |
} | |
// ... | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
love it. Thank you!