Quickly swap places two words or selections in VSCode editor.
Put two anchors or select two text ranges to quickly swap them places.
Swap word
to initialize snippet.
{
"key": "shift+alt+s",
"command": "extension.swapWord",
"when": "editorTextFocus"
}
It is also possible to use editorTextFocus && editorHasMultipleSelections
as the condition to avoid displaying the error notification.
- Add default keyboard snippet.
Enjoy!