Skip to content

Swaps the text of the current selections. A command for Sublime Text 2 and 3.

Notifications You must be signed in to change notification settings

gillibrand/sublimetext-swap-selections

Repository files navigation

Swap Selections

A command to swap the text of the current selections. This is mostly useful with two selections, e.g., swapping the order of two selected function arguments. It can also be used to rotate the text of any number of selections—perfect for creating cereal box decoder rings.

For example, swapping these three «selections»:

 A    B    C
«1»  «2»  «3»

Results in:

 A    B    C
«3»  «1»  «2»

Usage

Call from the command palette or Selection menu as the Swap Selections command.

Bound to the following keyboard shortcut on OS X:

Swap Selection     ⌥S    

On Windows and Linux:

Swap Selection     Alt+S

Compatibility

Compatible with Sublime Text 2 and 3.

History

Note that this package replaces the similar SwapSelection package, which is no longer maintained.

  • 1.0.1
    • README clean up.
  • 1.0
    • Initial release.

About

Swaps the text of the current selections. A command for Sublime Text 2 and 3.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages