Skip to content

How to force blank line between import statements and class declaration? #3926

Answered by tgodzik
knopp10000 asked this question in Q&A
Discussion options

You must be logged in to vote

I think:

newlines.topLevelStatementBlankLines = [
  {
    blanks { before = 1 }
  }
]

should help.

You might want to take a look at https://scalameta.org/scalafmt/docs/configuration.html#newlinestoplevelstatementblanklines

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by knopp10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants