RubyMine-如何将行尾字符更改为Windows? [英] RubyMine - How to change end of line character to Windows?

查看:103
本文介绍了RubyMine-如何将行尾字符更改为Windows?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天前,我更改了RubyMine设置.这与将行尾字符从'\ r \ n'更改为其他字符有关,因此仅与Mac兼容.

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.

现在,我编辑的每个文件都在git diff中完全更改.另外,我不记得哪个设置 选项.

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

有什么猜想吗?

推荐答案

File | Line Separator(或状态栏,与文件编码相邻),可以查看和更改当前文件的行尾.

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.

对于新建文件,请选中Settings (Preferences on Mac) | Code Style | General -> Line separator (for new files)

这篇关于RubyMine-如何将行尾字符更改为Windows?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆