Reputation: 511586
What is the shortcut in Android Studio to delete a line? And what is the shortcut to duplicate a line?
I found the answer in the documentation and I am posting it below for quick reference.
Upvotes: 63
Views: 26162
Reputation: 511586
Note from comments: Shift + Delete cuts the current line.
If it's not working, check the Keymap settings:
Upvotes: 118
Reputation: 7210
On Mac OS 11.3.1 and above just :
delete line completely :
Command + delete
and duplicate line :
command + d
Upvotes: 0