How does one change the end-of-line char(s)?

I spent about an hour searching the options for a way to get rid of \r from the end-of-line characters.  Oddly, it's not consistent.  Sometimes an edit to an existing line will result in the end-of-line characters being changed to \r\n from \n and sometimes it will not.  Is there a way to globally change the end-of-line char?


Comment actions Permalink

I'm using PhpStorm 95.192. In Code Style -> General, line separator is set to Unix.

Alexey Kudravtsev
Comment actions Permalink

When line separators set to Unix, IDEA should convert \r\n to \n.
If it is not the case, could you please create the issue in the
and attach the files under the question?


Please sign in to leave a comment.