Intellij IDEA changes line endings to LF on save
已回答
Every time I save a file, IDEA changes line endings to LF.
How can I fix this????????????????????????
请先登录再写评论。
It looks like this might be happening only for go files. Is there a separate setting for golang file endings?
See https://youtrack.jetbrains.com/issue/GO-3297 Feel free to comment in that thread if you think the behaviour is not correct.