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»
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
Compatible with Sublime Text 2 and 3.
Note that this package replaces the similar SwapSelection package, which is no longer maintained.
- 1.0.1
- README clean up.
- 1.0
- Initial release.