Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to duplicate one line of code in Android Studio?

I worked by Visual Studio and i want to know how can I duplicate a line in my source code in Android Studio IDE ?

i tried shift+'alt'+`down' but it didnt work :/

like image 817
Amir Ziarati Avatar asked Oct 09 '16 09:10

Amir Ziarati


People also ask

How do I copy a single line in Visual Studio?

Ctrl + C will copy the line if nothing is selected.


1 Answers

I found that I can do this by pressing Ctrl+D. So cool.

Also you can move a line of code down and up by Ctrl + Shift + Up/down.

On mac systems press Command instead of Ctrl

like image 79
Amir Ziarati Avatar answered Sep 28 '22 02:09

Amir Ziarati