atom-beautify总是修改换行符的解决方法
直接使用文件内部的换行符,不使用配置的换行符。
从文件packages\atom-beautify\src\beautifiers\js-beautify.coffee
里面查找
1
| options.eol = getDefaultLineEnding() ? options.eol #fixes issue #707
|
修改为
1
| options.eol = if text.indexOf('\r\n') >= 0 then '\r\n'else '\r'
|