Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA: Move line?

I really like IntelliJ IDEA's "Move statement" shortcut (Ctrl + Shift + /). However -- I am not sure if this is a bug releated to ActionScript editing only -- move statement is not always what I want and sometimes it is not correct when editing AS code.

So I just want to move a block of lines up/down. The Eclipse shortcut is Alt + / and does not move statement-wise. Is there an equivalent in IntelliJ IDEA?

like image 854
Joa Ebert Avatar asked Dec 11 '09 17:12

Joa Ebert


People also ask

How do I move a line left in Intellij?

[Shift] + [Tab] (to move things further left)

How do you move a line up and down?

ALT + UP/DOWN will move a line up or down.


1 Answers

Open Setings -> Keymap then search for "move line" via the upper right searchbox.

Under the Code folder you'll see:

  • Move Statement Down
  • Move Statement Up
  • Move Line Down
  • Move Line Up

The actions you're looking for are (as you may guess) the move line actions.

like image 129
Kai Zimmer Avatar answered Sep 17 '22 15:09

Kai Zimmer