Created
December 7, 2020 16:36
-
-
Save jonschlinkert/97c03df7e2366aee37c1fe4e54ffe596 to your computer and use it in GitHub Desktop.
VS Code - Open Keyboard Shortcuts (JSON) - Add the following key binding configuration to your `keybindings.json` file to automatically wrap angle brackets around selected text by typing "<".
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 angle brackets (<) | |
"key": "shift+,", | |
"command": "editor.action.insertSnippet", | |
"when": "editorHasSelection && editorTextFocus", | |
"args": { | |
"snippet": "<${0:${TM_SELECTED_TEXT}}$0>" | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/jonschlinkert/97c03df7e2366aee37c1fe4e54ffe596#file-keybindings-json