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

Any Swap

wolray

|
18,206 installs
| (7) | Free
Swap parameters, lines, even complicated expressions from current cursor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Any Swap For VS Code

Swap parameters, lines, even complicated expressions from current cursor.

Behaves just like Move-Element-Left/Right in IntelliJ's IDEs, but more intelligently. It is based on a general Abstract-Syntax-Tree (AST) analyzer that enables user to swap expressions recursively while maintaining a correct operator precedence.

Commands

alt+[: anySwap.backward
alt+]: anySwap.forward

Features

Place your cursor | on the begin/end of a word/paren, then trigger the command to swap things.

swap

Release Notes

0.1.0

First publish.

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