Is it possible to remove unnecessary blank line on code formatting in Android Studio?
Asked
Active
Viewed 4,210 times
2
-
1Use `Code` > `Reformat Code` – Chamath Feb 28 '18 at 02:03
-
Hope the following answer works for you – Harshal Bhavsar Feb 28 '18 at 02:32
-
1thanks both answer are good. upvoted Harshal's but not showing – ehku Feb 28 '18 at 03:21
-
Feel free to mark it as accepted.Upvote Works when u have more than 15 reputation point – Harshal Bhavsar Feb 28 '18 at 05:44
1 Answers
3
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

Harshal Bhavsar
- 1,598
- 15
- 35