Biggy
Biggy

Reputation: 160

PhpStorm - permute reverse selection

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

Answers (4)

Biggy
Biggy

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

Viaches
Viaches

Reputation: 401

Maybe you help a option from awesome plugin String Manipulation

MenuEditString ManipulationSwap Characters/Selections


Configure hot-keys

  • SettingsKeymap
  • Search "Swap Characters" and select line
  • Add Keyboard Shortcut(press Enter)
  • Set your shortcuts
  • Press Apply and OK
  • Enjoy!

Upvotes: 1

Charles
Charles

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

Luke Cousins
Luke Cousins

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

Related Questions