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.

Interested in JVM Development?

call to action image

As well as moving a line you can move a whole statement in the same scope!

Learn More


Related Resources

Inlay Hints
Inlay Hints
Inlay hints provide additional information about your code.
Go to Next Error
Go to Next Error
Quickly move to the next (or previous) error or warning in the file.
Find Next Word
Find Next Word
Find next word and highlight all instances.