Ignore whitespace in Visual Studio Code git diff view

GitVisual Studio-Code

Git Problem Overview


Is it possible to ignore white-space when viewing code differences of a file (generated by GIT) in Visual Studio Code? That will be really helpful in checking for actual code additions/deletions before committing.

Git Solutions


Solution 1 - Git

Add on your settings.json:

"diffEditor.ignoreTrimWhitespace": true,

Solution 2 - Git

I believe OP is asking to ignore all whitespaces (including between words) not just trailing whitespaces.
Unfortunately, it's still not implemented and you can track the process status here: https://github.com/Microsoft/vscode/issues/43026

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondarKnightView Question on Stackoverflow
Solution 1 - GitPaoloCView Answer on Stackoverflow
Solution 2 - GitGorvGoylView Answer on Stackoverflow