Move Line

Move a line throughout your class

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

Expand and Collapse Code
Quickly view specific parts of a class by expanding or collapsing code
Move Statement
Move a statement up or down
Optimize imports
Remove unused imports from your code