添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If .git/config has "autocrlf = false" and try to commit file with other new line symbol, VSCode diff viewer show that file was changed but no changes in the file. In same time git diff show that changed all file.
Why this is not a bug?
How user can detect wrong new line symbol in the file?

In #5118 (comment) it was suggested to merge that issue #5118 with this issue.

Let's continue tracking in #19254 because that one has more upvotes.

Current title of that issue is: "Diff editor: Show encoding and eol differences"

This issue is not about showing encoding changes in the diff editor. The other issue is.

Please change this issue title that it includes encoding changes.
If it stays like it is currently, the merge of the two issues lost one feature request (The "show also encoding changes" feature request).

I can understand if the original author of this issue does not want to change it. Then in future it would be good to ask for change before merging issue with different contents.

Original issue is locked - I cannot put this statement there. Creating a new issue would be an option. I'll do that if this issue is not changed.

Just an update since some time has passed without a fix. others in my company that use pycharm dont have this problem - its pretty hard for me to sell others on vscode when I keep accidentally committing changes that overwrite the entire git blame for a file - because the viewer suppresses the actual delta for all the changes in line endings. I'd really like to see a fix for this point of embarrassment.