How to ignore differences line separators.

I have a problem. when I check difference files between local and remote files. 

I want to ignore No differences files that files have differences only in line separators.

 

0
5 comments

There's a dropdown menu to choose ignoring options: https://www.jetbrains.com/help/phpstorm/2018.1/differences-viewer.html

You have it set for "Do not ignore"

1

Thanks Dmitry Tronin. 

0

I've gone through the documentation on the diff checker and I've looked through the dropdown menu(s) mentioned by Dmitry Tronin, but I can't find an option for ignoring LF/CRLF/CR line separators.

The most promising option, "Ignore whitespaces" doesn't do the trick. Any other ways to ignore line separators?

0

When you compare directories, there should be an option like "Compare by:" that should be switched to "text" to hide files with different line separators, like in:

https://youtrack.jetbrains.com/issue/IDEA-101502

2

Yep, that'll do. Thank you, Vasiliy Yur. I didn't see that option before because I was comparing single files. But I really need that option when doing bulk comparison. Thanks.

0

Please sign in to leave a comment.