sitting-duck
sitting-duck

Reputation: 1071

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.

Upvotes: 5

Views: 594

Answers (2)

Artem G.
Artem G.

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

Blackbelt
Blackbelt

Reputation: 157457

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 + /

Upvotes: 13

Related Questions