scalasbtline-endingsscalafmt

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


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.


Solution

  • adding to scalafmt.conf

    lineEndings=preserve
    

    solves the problem