Closed ctinghino closed 7 years ago
Could it be because of like newline character difference?
indeed it is, it looks like it converts \r\n into \n in clipboard and diff it against \r\n in source
I have the same problem. When I copy text from a file with \r\n, it is \n on the clipboard. Can you add an option to compare ignoring carriage returns?
Thanks guys. Yeah, we need to do something about it otherwise Compare Text with Clipboard function on Windows 10 is pretty useless.
I had a look at issues on clipboardy
which Partial diff internally uses for clipboard interaction. There are several issues reported about Windows and EOL characters. I'll see if using the latest version of clipboardy fixes the problem first.
Ctrl+C
I'll see if using the latest version of clipboardy fixes the problem first.
Updated v1.1.2 to v1.1.4. Didn't fix the problem.
As reported in https://github.com/sindresorhus/clipboardy/issues/27 , getting \r\r\n
for EOL
Released as v0.3.3. It would be great if you can test it out @quasarea @VicCarLs 😉
Works great, thanks!
Thanks for confirming it 👍
Everytime I try the option to Compare Text with Clipboard I see all the file differs from the clipboard. This happens even if I compare a file with itself. I'm on Windows10, vscode version 1.15.1
I disabled the extension