The Code | Move Statement Up/Down action is useful for reorganizing the code lines in your file, e.g., for bringing a variable declaration closer to the variable usage.
For example, select a code fragment and press &shortcut:MoveStatementUp; or &shortcut:MoveStatementDown;.
Before:
After moving the lines up:
After moving the lines down:
When there is no selection, the line at the cursor will be moved.