VisualStudio
VisualStudio copied to clipboard
Bug of git comparer
Visual Studio Version:16.9.4
Steps to Reproduce:
-
Create a console application and add it to git.
-
Open Program.cs, make any change and save it, compare it in git, vs treat the left document as LF, and treat the right document as CRLF, so it show there're lots of changes if unchecked
Ignore trim whitespace
. In fact, whatever the original file and modified file, the NewLine is CRLF. Why VS allways treat the left document as LF?
https://user-images.githubusercontent.com/2529999/115434549-6703bb00-a23b-11eb-8648-b9c54c8a0c3f.mp4
I remember the old version(maybe a few years ago) doesn't has this bug, if this, the option Ignore trim whitespace
is almost useless since it always show large changes and we can't find the different whitespaces we needed.