Skip to content

Instantly share code, notes, and snippets.

@jonschlinkert
Created December 7, 2020 16:36
Show Gist options
  • Save jonschlinkert/97c03df7e2366aee37c1fe4e54ffe596 to your computer and use it in GitHub Desktop.
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 "<".
[
{
// 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