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.
Linux/Windows
- Control + D : Duplicate current line or selection
- Control + Y : Delete current line
Mac
- Command + D : Duplicate current line or selection
- Command + Delete : Delete current line
See also
来源:https://stackoverflow.com/questions/40718193/android-studio-delete-line-and-duplicate-line-shortcuts