Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ability/setting to not copy blank lines in Android Studio

In visual studio there is a setting that enables the editor to know that if I accidentally hit cntrl c but I am on a blank line, it will not copy empty space.

This feature is quite useful and after some googling, I don't believe this feature exists in Android Studio.

However, I wanted to ask others to make sure that this feature doesn't exist because it is very useful.

like image 405
sitting-duck Avatar asked Dec 11 '22 20:12

sitting-duck


1 Answers

ctrl + alt + shift + / should show you the following pop up

enter image description here

clicking on Registry you should get

enter image description here

look for editor.skip.copy.and.cut.for.empty.selection and check it. Tested on AS 1.4 for Linux.

Edit

On Mac the shortcut is cmd + shift + alt + /

like image 111
Blackbelt Avatar answered Feb 03 '23 20:02

Blackbelt