Reputation: 160
I switched from sublime text to phpstorm recently and missing the permute reverse selection feature from sublime (CTRL+T on windows).
More clear: Swapping selections with each other.
From
xxx
yyy
to
yyy
xxx
Do you guys know if there is something equivalent in PhpStorm? I didn't find anything in the www.
Upvotes: 7
Views: 770
Reputation: 160
So after days of research this feature does not exist in PhpStorm, unfortunately. I'll contact JetBrains.
Thanks though.
7 years later: it's now possible without plugins. The action is called Transpose (Edit → Transpose).
Upvotes: 1
Reputation: 401
Menu
→ Edit
→ String Manipulation
→ Swap Characters/Selections
Settings
→ Keymap
Add Keyboard Shortcut
(press Enter)Apply
and OK
Upvotes: 1
Reputation: 1128
On Windows, you can press CTRL+ALT+S to show up settings dialog. On the left menu, select Keymap
. In the search box on the right, you can type to find commands shortcuts. Also, the first button at right of that search box allows you to search a command by its shortcut.
Perhaps doing a little research with these two features you can find what you need. I'm not sure if PhpStorm has such feature (swapping selections), though.
Upvotes: 0
Reputation: 2156
You can use Shift+Alt+Up and Shift+Alt+Down to moves lines up and down which should have the desired effect.
Upvotes: 0