Search code examples
androidandroid-studiocopy-paste

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.


Solution

  • 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