scalafmt changes line endings, how configure it to ignore them?
Asked Answered
B

1

5

After running any SBT task (e.g. compile) scalafmt is executed and changes line endings on some computers (most of them use Windows). Is it possible to set line endings in scalafmt.conf or any other way?

Thanks.

Bostow answered 19/6, 2018 at 10:21 Comment(1)
Currently I'm going to verify lineEndings=preserveBostow
B
6

adding to scalafmt.conf

lineEndings=preserve

solves the problem

Bostow answered 19/6, 2018 at 14:11 Comment(1)
additionaly, docstrings.style = keep helps keeping the line breaks in documentary comments also.Moniz

© 2022 - 2024 — McMap. All rights reserved.