Created
August 12, 2018 02:06
-
-
Save ronalson/ec288bbaad0a72e9305dabfc8e4ed3be to your computer and use it in GitHub Desktop.
Autoclosing Quotes and Backticks on 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
[ | |
{ | |
// wrap a selection with double quotes (") | |
"key": "shift+'", | |
"command": "editor.action.insertSnippet", | |
"when": "editorHasSelection && editorTextFocus", | |
"args": { | |
"snippet": "\"${TM_SELECTED_TEXT}$1" | |
} | |
}, | |
{ | |
// wrap a selection with single quotes (') | |
"key": "alt+'", | |
"command": "editor.action.insertSnippet", | |
"when": "editorHasSelection && editorTextFocus", | |
"args": { | |
"snippet": "'${TM_SELECTED_TEXT}$1'" | |
} | |
}, | |
{ | |
// wrap a selection with back ticks (`) | |
"key": "alt+`", | |
"command": "editor.action.insertSnippet", | |
"when": "editorHasSelection && editorTextFocus", | |
"args": { | |
"snippet": "`${TM_SELECTED_TEXT}$1" | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks @swill for helping me out