I usually duplicate the line if i need to use the code same as the above line. I did not find the shortcut key to duplicate the line . I saw some posts to implement shortcut key to duplicate line but they are rather complicated and requires to run script every time.
For anyone still looking for a keyboard shortcut to duplicate lines in Google Colab
,
Left_Alt + Shift + Down_arrow works for me!
if you want duplicate a code line or selected code lines just use ctrl+c
and ctrl+v
. or ctrl+c+v
edit: I've checked after time, now there is a shortcut is
shift + alt + arrow down or up
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