Invert or rotate keywords in JavaScript, Shell Script and TypeScript.
- Added
super
andthis
as opposite. - Added support for trusted, virtual and remote workspaces.
- Select a keyword and change it to its opposite e.g. like a boolean from
true
tofalse
or vice versa. - Select a keyword and change it to its next sibling e.g. like an accessor from
private
->protected
->public
->private
... The rotation is always in alphabetical order.
Select the keyword or place a caret in the keyword and run the command or press the keyboard shortcut. The keyword swap works also with multiple different keywords.
Invert Keyword
- Invert a keyword to its opposite.Rotate Keyword
- Rotate a keyword to its next sibling.
Cmd + I
-> Invert KeywordCmd + Shift + I
-> Rotate Keyword
Ctrl + I
-> Invert KeywordCtrl + Shift + I
-> Rotate Keyword
If the key bindings don't work, please check Preferences -> Keyboard Shortcuts
.