dsg24156 2017-01-13 08:52
浏览 517
已采纳

如何在比较文件时告诉PhpStorm忽略文件分隔符?

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?

  • 写回答

1条回答 默认 最新

  • doushen4719 2017-01-13 10:38
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题