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

Viewed 791

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.

3 Answers

if you want duplicate a code line or selected code lines just use ctrl+c and ctrl+v. or ctrl+c+v

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

I found the solution just in case anyone wants to use it. Ctrl + Shift + Down_arrow

Related