The code editors use to have this combination of keys that still work today.
CURSOR MOVEMENT:
ARROWS -> move character by character
CTRL + ARROWS -> move word by word
HOME -> Go to the first character of the line
END -> Go to the last character of the line
CTRL + HOME -> Go to the start of the file
CTRL + END -> Go to the end of the file
SELECTION:
SHIFT + CURSOR MOVEMENT -> move selecting text
COPY & PASTE:
CTRL + INS -> Copy the selected test TO the clipboard (COPY)
SHIFT + DEL -> Move the selected test TO the clipboard (CUT)
SHIFT + INS -> Move the selected test FROM the clipboard (PASTE)
Since those times I program with that COPY & PASTE combination. There is less movement of the hands. Once you get used to it, you will find that CTRL + C and CTRL + V combinations are not so ergonomic.
For example, in order to move a block of code from one place to another, I use to press:
HOME : go to the first position of the line
SHIFT + ARROW DOWN : select lines all the way down.
SHIFT + DEL : cut the block.
CURSOR MOVEMENT until the first position of the line where the code is going to be inserted.
SHIFT + INS : to paste the block.
You can see that in all that process, the left hand have only made the slight movement of pressing and releasing SHIFT, and not the complicated movement of pressing CTRL + C / CTRL + V. The right hand did only use the arrows (better if it is from the numeric keypad, so that HOME and END can be reached with an slight movement of the right index finger)
A long time ago, before Windows...
The code editors use to have this combination of keys that still work today.
CURSOR MOVEMENT:
ARROWS
-> move character by characterCTRL
+ARROWS
-> move word by wordHOME
-> Go to the first character of the lineEND
-> Go to the last character of the lineCTRL
+HOME
-> Go to the start of the fileCTRL
+END
-> Go to the end of the fileSELECTION:
SHIFT
+CURSOR MOVEMENT
-> move selecting textCOPY & PASTE:
CTRL
+INS
-> Copy the selected test TO the clipboard (COPY
)SHIFT
+DEL
-> Move the selected test TO the clipboard (CUT
)SHIFT
+INS
-> Move the selected test FROM the clipboard (PASTE
)Since those times I program with that COPY & PASTE combination. There is less movement of the hands. Once you get used to it, you will find that
CTRL + C
andCTRL + V
combinations are not so ergonomic.For example, in order to move a block of code from one place to another, I use to press:
HOME
: go to the first position of the lineSHIFT
+ARROW DOWN
: select lines all the way down.SHIFT
+DEL
: cut the block.CURSOR MOVEMENT
until the first position of the line where the code is going to be inserted.SHIFT
+INS
: to paste the block.You can see that in all that process, the left hand have only made the slight movement of pressing and releasing
SHIFT
, and not the complicated movement of pressingCTRL
+C
/CTRL
+V
. The right hand did only use the arrows (better if it is from the numeric keypad, so thatHOME
andEND
can be reached with an slight movement of the right index finger)Thanks, I've added a selection of these to the main post. Funnily I use quite a few of these in my bash terminal! ;)