question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide ability to ignore all whitespace in diff editor (feature request)

See original GitHub issue

Steps to Reproduce:

  1. In settings it’s possible to set "diffEditor.ignoreTrimWhitespace": true
  2. There’s no option to ignore all whitespace,

Would it be possible to add "diffEditor.ignoreAllSpaces": true? I believe the command-line to achieve this would be something like git diff --ignore-space-at-eol -b -w [commit]...

h/t Daniel Gomez @ coderwall

[edit] Might only need -w ? [/edit]

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:331
  • Comments:74

github_iconTop GitHub Comments

133reactions
tommckcommented, Aug 13, 2019

It’s been over a year and I REALLY would love to have this feature. Any chance it will be implemented?

43reactions
ahernseancommented, Mar 24, 2021

@soundneedle, @farmerpaul, @samuelms1, @navneeth-spotnana, @WilliamLHarms This feature already exists in VS code for long now

By default now it is enabled to ignore whitespace. If not you can check click on this button to disable “Show Whitespace”:

You can notice if I enable setting “Show Whitespace”, it is showing all whitespace changes too.

That’s not quite what people are asking for. It doesn’t ignore all whitespace. It ignores leading or trailing whitespace only. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignore whitespace in Visual Studio Code git diff view
I believe OP is asking to ignore all whitespaces (including between words) not just trailing whitespaces. Unfortunately, ...
Read more >
Ignore white space in code review - The GitHub Blog
When reviewing code, a diff with a number of trivial white space changes can create enough noise that it's difficult to focus on...
Read more >
In pull request, unchecked show and diff whitespace still ...
As noted in the posted solution, this behavior is as designed. Only leading and trailing whitespace is ignored, not whitespace within a line...
Read more >
Beanstalk — Ignoring Whitespace Changes in Diffs
Ignoring Whitespace Changes in Diffs Sometimes developers commit a lot of whitespace changes along with their actual change.
Read more >
Provide the option to ignore whitespace differences in Apex
We've recently released a new version of our diff viewer which includes character-by-character diff highlighting, and ignores whitespace ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found