Home

Swap

Swap selections' text, lines, or just their direction

Available commandsSwap

Nameiddescription
TextcursorPlus.swap.textSwap the text between selections
LinecursorPlus.swap.lineSwap entire lines between selections
Line TextcursorPlus.swap.lineTextSwap lines starting from the first non-whitespace character
DirectioncursorPlus.swap.directionReverse the direction of selections
WrappercursorPlus.swap.wrapperChoose a swap command from a quick-pick menu

Wrapper command?

Learn more in the Wrapper command documentation.

ArgsSwap

This command takes no arguments.

ExamplesSwap

Keyboard shortcutExamplesSwap

keybindings.json
[
  {
    "key": "ctrl+j f",
    "command": "cursorPlus.swap.text",
    "when": "editorTextFocus"
  }
]

VideoExamplesSwap

ConfigurationSwap

This command has no configuration.