Created
March 8, 2021 16:12
-
-
Save elshanx/b616d985e37861fb50949ef43ebc238f to your computer and use it in GitHub Desktop.
add console log to vscode key bindings
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
File > Preferences > Keyboard Shortcuts | |
Above the search bar on the right you'll see a icon that when you hover over says "Open Keyboard Shortcuts (JSON)", click on it | |
Add this to the JSON settings: | |
{ | |
"key": "alt+a", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "console.log('${TM_SELECTED_TEXT}$1')$2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment