Is the a shortcut to execute multiple lines of code, without having to move the cursor to the last line? For example after changing something in the middle of the code block and not wanting to use the arrows-key to go to the end.
1 Answer
You can press ctrl+end
to go to the end of the python multiline script, and then hit enter
(if you are in an indentation block such as editing a for loop, first delete the indentation with backspace
, then enter
). A more specific shortcut for that operation would be too much of a whim, nobody would need it.
python.exe
); pressing the up arrow doesn't move the cursor to a previous line, but instead (typically) replicates a previous line on the current one.