问题
Is it possible to remove unnecessary blank line on code formatting in Android Studio?
回答1:
Yes. It is possible to configure the number of blank lines in the settings menu : File -> Other Settings -> Default Settings... -> Code Style -> Java(or whatever your language is) -> Blank Lines
来源:https://stackoverflow.com/questions/49020651/how-to-remove-unnecessary-blank-line-on-code-formatting-in-android-studio