VisualStudio icon indicating copy to clipboard operation
VisualStudio copied to clipboard

Bug of git comparer

Open CreateAndInject opened this issue 3 years ago • 1 comments

Visual Studio Version:16.9.4

Steps to Reproduce:

  1. Create a console application and add it to git.

  2. 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?

image

https://user-images.githubusercontent.com/2529999/115434549-6703bb00-a23b-11eb-8648-b9c54c8a0c3f.mp4

CreateAndInject avatar Apr 20 '21 18:04 CreateAndInject

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.

CreateAndInject avatar Apr 20 '21 18:04 CreateAndInject