Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Swap CodeNew to Visual Studio Code? Get it now.
Swap Code

Swap Code

Sophia Shovkovy

|
85 installs
| (0) | Free
Fast and easy keybinding to swap text
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Swap Code Keyboard Shortcut

The Swap Code extension enables an intuitive keyboard shortcut to swap a text selection with clipboard text, providing a fast and easy way to rearrange code in your file.

Instructions

  • Select text and copy to clipboard
  • Select different text and swap in clipboard text using the Command Palette or keyboard shortcut

Swap code

Keyboard Shortcuts

  • Mac: cmd+shift+v
  • Windows: ctrl+shift+v

Release Notes

See changelog.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft