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

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.