RubyMine - How to change end of line character to Windows?

不羁的心 提交于 2019-12-12 14:19:32

问题


I changed a RubyMine settings few days back. It was related to changing the end of line character from '\r\n' to something else, so that it is only Mac compatible.

Now, each file I edit is changed completely in git diff. Also, I can't recall which setting option was it.

Any guesses?


回答1:


File | Line Separator (or the same in status bar, next to file encoding) which will allow to see and change line ending for current file.

For newly created files check Settings (Preferences on Mac) | Code Style | General -> Line separator (for new files)



来源:https://stackoverflow.com/questions/21270001/rubymine-how-to-change-end-of-line-character-to-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!