I've got a file with wrong line separators - how do I convert?
Hi -
I'm using RubyMine on a mac, and I want unix line endings for all files. A few files in the project I'm using have (for some unknown reason) windows line endings, and I want these converted when I change any contents. Is there any way to make Ruby mine do this automatically? manually? At least indicate when the file's line separators don't match the project's?
thanks
Tim
请先登录再写评论。
Hi Tim,
Settings | Plugins | Browse repositories -- install Webmaster plugin:it has special actions for converting line endings of current file (or bunch of selected folders/files in Project View panel). It also has separate inspection that warns you if lines endings in current file is different to default one (hard to miss it).
http://plugins.intellij.net/plugin?pr=ruby&pluginId=6983
fab, thanks - beats using sed!