Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a shortcut key to duplicate line in google colab?? If not how can it be implemented?

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.

like image 633
Ajay Pyatha Avatar asked Oct 19 '25 09:10

Ajay Pyatha


2 Answers

For anyone still looking for a keyboard shortcut to duplicate lines in Google Colab,
Left_Alt + Shift + Down_arrow works for me!

like image 63
Martin N Avatar answered Oct 22 '25 03:10

Martin N


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

like image 44
Mervan Yalçındağ Avatar answered Oct 22 '25 03:10

Mervan Yalçındağ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!