Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NetBeans "Shift Left" analog on PHPStorm

I am deciding to migrate from NetBeans to PHPStorm IDE, and the only feature I have not found in PHPStorm is "Shift Left (Right), Move Down (Up)", which moves a line on one tab to the left, right, or swaps with next or previous line. Does PHPStorm have any analog of this?

Using Tab or Shift+Tab is not suitable.

like image 729
Evgeny Avatar asked Oct 08 '10 19:10

Evgeny


3 Answers

There's no built-in way to Tab/Untab (Indent/Unindent) line w/o making a selection in Jetbrains PhpStorm. So, Tab & Shif+Tab is your only choice.

As for move line Up & Down Try Ctrl+Shift+Up/Down. However this action also interacts with program structure and not just moves line as in text.

like image 122
Alexey Gopachenko Avatar answered Nov 18 '22 13:11

Alexey Gopachenko


Select your code and then press Shift+TAB to shift to left or just press TAB to shift to right.

Works in phpstorm and wbestorm.

like image 21
miron Avatar answered Nov 18 '22 13:11

miron


[CTRL] [ALT] [I] will auto indent the line where your cursor is or any selected lines.

like image 1
Jason Avatar answered Nov 18 '22 12:11

Jason