Move Line

Move a line throughout your class, but watch out for errors!

Press ⌥⇧↑ (macOS) / Alt+Shift+Up Arrow (Windows/Linux), to move a line up. To move a line down use ⌥⇧↓ (macOS) / Alt+Shift+Down Arrow (Windows/Linux).

This shortcut does not factor in scope. You can move lines in and out of scope.


Related Resources

Generate constructors and accessor methods
Generate constructors and accessor methods
Quickly generate common code constructs such as Constructors, Getters and Setters.
Expand and Collapse Code
Expand and Collapse Code
Quickly view specific parts of a class by expanding or collapsing code blocks.
Move Statement
Move Statement
Move a statement up or down within the same scope.