How to move a line of text up/down in Nano linux command line editor?
Is there any analogue way to do that as in IntelliJ Idea:
On the main menu, choose Code | Move Line Up or Code | Move Line Down
.
Press Shift+Alt+Up or Shift+Alt+Down.
Moving Content Up or Down in Your Class With your caret on a line, you can press ⌥⇧↑ (macOS), or Alt+Shift+Up Arrow (Windows/Linux), to move a line up. Alternatively, you can move a line down with ⌥⇧↓ (macOS), or Alt+Shift+Down Arrow (Windows/Linux). The same shortcut can move a selection up or down.
Press ⌥⇧↑ (macOS), or Alt+Shift+Up Arrow (Windows/Linux), to move a line up. To move a line down use ⌥⇧↓ (macOS), or Alt+Shift+Down Arrow (Windows/Linux).
Move a line up or downPress Alt+Shift+Up or Alt+Shift+Down .
You can use the following shortcut keys in nano to undo or redo: Alt + U is used to undo anything in the nano editor. Alt + E is used to redo anything in the nano editor.
You can use Ctrl+K to cut a line, move to destination position and press Ctrl+U to paste it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With