Enable removal of newline following topmost package statement #3629
-
I've attempted to configure scalafmt to remove all newlines (including, pertinently, the one added between the topmost package statement and the next statement). Sadly, I've come up short. Prior discussion suggests that this is desired broadly. I suspect I'm in the minority. Nonetheless, I'm curious. Is this already possible? If not, could it be made configurable? Ideally, this code: package org.scalafmt
import scala.collection.Map Could be automatically formatted as follows: package org.scalafmt
import scala.collection.Map |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
if you had removed all newlines, you would have had
what you are interested in, we call that blank lines, and there's a parameter for that. if it doesn't do what you want, then it's not supported. |
Beta Was this translation helpful? Give feedback.
if you had removed all newlines, you would have had
what you are interested in, we call that blank lines, and there's a parameter for that. if it doesn't do what you want, then it's not supported.