Android Studio delete line and duplicate line shortcuts

Linux/Windows

  • Control + D : Duplicate current line or selection
  • Control + Y : Delete current line

Note from comments: Shift + Delete cuts the current line.

Mac

  • Command + D : Duplicate current line or selection
  • Command + Delete : Delete current line

See also

  • Android Studio Keyboard Shortcuts documentation
  • Android Studio Shortcuts You Need the Most

If it’s not working, check the Keymap settings:

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)