Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 637 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 637 Bytes

Swap-Word VSCode extension

Quickly swap places two words or selections in VSCode editor.

Demo

Instructions

Put two anchors or select two text ranges to quickly swap them places.

Commands

Swap word to initialize snippet.

Example keybinding setup

{
    "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.

TODO

  1. Add default keyboard snippet.

Enjoy!