Move Statement

Move a statement around within your method

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).

This shortcut factors in scope. You cannot move a statement outside of the scope its contained within.

Related Resources

Optimize imports
Remove unused imports from your code
Rename bookmark
Rename an existing bookmark
CamelCase in code completion
Use CamelCase in code completion