Move Statement

Move a statement up or down within the same scope.

You can use ⌘⇧↑ (macOS) / Ctrl+Shift+Up Arrow (Windows/Linux), to move a statement up. To move a statement down use ⌘⇧↓ (macOS) / Ctrl+Shift+Down Arrow (Windows/Linux).

Interested in JVM Development?

call to action image

Moving statements is helpful, but sometimes you just want to move one line!

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.