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

New live templates for main methods
New live templates for main methods
Create an instance main method using a live template.
Live templates for simple IO
Live templates for simple IO
Add simple IO methods using live templates.
Inlay Hints
Inlay Hints
Inlay hints provide additional information about your code.