Reputation: 1071
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.
Upvotes: 5
Views: 594
Reputation: 26
Since 2021 this setting has been moved to Advanced Settings, and is named
Don't copy/cut the current line when invoking the Copy or Cut action with no selection
Android Studio (2023.2.1) Advanced Settings screen
Source: https://youtrack.jetbrains.com/issue/PY-50174
Upvotes: 1
Reputation: 157457
ctrl + alt + shift + /
should show you the following pop up
clicking on Registry you should get
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 + /
Upvotes: 13