I'm having trouble to set up formatter not to insert blank lines between methods in interfaces. In the same time I still want to have blank lines between methods in classes. I cannot find appropriate formatter setting that would allow this. Can somebody point me to the right option?
As stated in comments by vainolo, there isn't any direct option to do so. Following is the screenshot for the eclipse formatter for adding new lines and it doesn't distinguish between the methods of class and interface
But, a simple manual work-around is possible. Select the lines as shown below, and run a simple regex
^\s*\n find and replace to remove the blank lines.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With