Search code examples
phpsynchronizationphpstorm

How to tell PhpStorm to ignore file separators when comparing files?


I searched far and wide and I'm not even sure it is possible, but please let me know if you know anything that might be useful.

I use PhpStorm 9.0 to edit my .php files. I sometimes use multiple servers and multiple local computers to work on one project, which calls for a lot of synchronizing of files.

PhpStorm's built-in synchronization function works pretty well, however I repeatedly face the problem with line separators.

For example out of 50 files there are 3 which are changed, but since the server changes line separators on it's own, PhpStorm treats all those files as changed, which means I can't review just the 3 files, I have to browse through all 50 to check which are changed.

Anybody here has been successful with changing this behavior to ignore line separators?


Solution

  • Well .. technically line endings are kind of ignored (when comparing content by lines) .. but files with the difference in line endings only are still listed as being different in the actual file list:

    Watch those tickets (star/vote/comment) to get notified on any progress.