Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Swap 🔁New to Visual Studio Code? Get it now.
Swap 🔁

Swap 🔁

Faustino Ntemo Kialungila

|
2,952 installs
| (5) | Free
Swapping texts made easy
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS CODE SWAP 🔁

Swap 🔁 is a VS Code extension that makes swapping texts easy 😎

Swap

Replace Text at Line

Replace Text at Line format: line-number:colStart-colEnd.

  • If only colStart is provided, it replaces at colStart to the end of the line.
  • If both colStart and colEnd are provided, it replaces the text in that range.
  • If neither columnStart nor columnEnd are provided, it defaults to replacing the entire line.

Instructions

Swapping

  • Select two or more texts
  • Open command palette and type Swap
  • Press enter and voilà ✅

Replacing

  • Select two or more texts
  • Open command palette and type Replace text at line
  • You will be asked the line number you want to replace selected text with.
  • Press enter and voilà ✅

Keyboard shortcuts

  • Swapping:
    • Windows: CTRL+ALT+8
    • Mac: CMD+OPTION+8
  • Replacing:
    • Windows: CTRL+ALT+9
    • Mac: CMD+OPTION+9

Changelog

Current version: v0.1.0

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