1

When I make some small changes in file, like on following screenshot:

and make commit with WebStorm version control, content of file is fully changed(instead of few changes).

My suggestions - issue with LF and CRLF, but I played a bit with that and didn't found how to solve this.

P.S. when I commit with git add file_name and git commit I don't have this problem.

enter image description here

LazyOne
  • 158,824
  • 45
  • 388
  • 391
comalex3
  • 2,497
  • 4
  • 26
  • 47
  • 1
    Possible duplicate of [PhpStorm saving with Linux line ending on Windows](https://stackoverflow.com/questions/40470895/phpstorm-saving-with-linux-line-ending-on-windows) – ikkentim Feb 19 '19 at 10:18
  • @ikkentim I tried each line separator from setting, and every time whole file mark as changed, so your link doesn't help me – comalex3 Feb 19 '19 at 11:56

2 Answers2

1

I spend hours with this issue and finally, the following config solved my problem.

enter image description here

Farid Movsumov
  • 12,350
  • 8
  • 71
  • 97
0

When having the same issue and only wanting to suppress it for certain files after small changes I found it handy to use the Line Separator toggle on the bottom right in the status bar. Works like a charm.

line separator toggle

petermafia
  • 44
  • 3