I want to select multiple lines and move them together (left/right/up/down). How to do that?
Just an observation: use [space] to right, and [shift]+[space] to left/reverse.
select block, use Source->shift right.
Moving lines: You can move lines up and down by pressing ALT+UP or ALT+DOWN. No need to select, cut, or paste! Duplicating lines by pressing CTRL+ALT+UP. Note that this key combination might be hijacked by your operating system or window manager (e.g. the default configuration of recent Gnome installations).
Moving lines left or right, i.e. changing the level of indentation, can be done in almost all code editors using Tab and Shift+Tab.
Moving blocks of code up and down can be done in Eclipse using Alt+up and Alt+down.
See Preferences -> General -> Keys.
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