Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
几天前我更改了 RubyMine 设置。它与将行尾字符从 '\r\n' 更改为其他字符有关,因此它仅与 Mac 兼容。
现在,我编辑的每个文件都在 git diff 中完全更改。另外,我不记得是哪个设置选项了。
有什么猜测吗?
File | Line Separator(或在状态栏中相同,在文件编码旁边)这将允许查看和更改当前文件的行尾。
File | Line Separator
对于新创建的文件检查Settings (Preferences on Mac) | Code Style | General -> Line separator (for new files)
Settings (Preferences on Mac) | Code Style | General -> Line separator (for new files)