Feature request: option to always hide whitespace changes when viewing diffs

As a user who never cares about seeing whitespace changes, I want to set a option somewhere (on my account?, a repo?, an org?) that stores this setting for use everywhere applicable, so that I don’t need open a popout form, check a box, and click a button every single time I view a diff.

Right now, every time I view a diff, I need to go into “Diff settings”, “Hide whitespace changes”, and then “Apply and reload”. This setting does not stick between sessions, pages, or even views of the same diff: simply refreshing the page will show me whitespace changes again!

diff.png

201 Likes

Thanks for the feedback! I’ve taken your suggestion and passed it along to the appropriate teams. Thanks again for reaching out :grinning: and our apologies for the delayed response.

11 Likes

Where can we track this feature request?

13 Likes

+1 for both the feature request and wondering where to track it

13 Likes

@andreagriffiths11Do you have an update for us?

4 Likes

What does “Diff” mean? I’m new to GitHub, I apologize in advance for my ignorance.

Kind Regards,

Robin.

4 Likes

@oo7robin a “diff” is just the comparison of a file between a single commit, multiple commits, tags, branches, etc. . I’m sure you’ve seen them before: it are the files where you have the red and green markings on lines of code.

A random “diff” from the Atom repo: https://github.com/atom/atom/pull/18988/files

2 Likes

Any update on this? Whitespace is so insignificant in everything I do. If you re-indent a bunch of code but only make one small change you get this huge pink blob that makes it look like you make 1000 changes. I would really love an option to make this permanent.

4 Likes

I agree, thanks to prettier showing spaces is almost always not needed in some repos, best way to just persist each user setting per repo

3 Likes

Any updates on this?  I would love to have this be the default for all my PRs.

3 Likes

+1 for this important feature

2 Likes

+1 - I don’t care about whitespaces in 99.9% of cased and I always have to do those few extra clicks to turn it off in each PR.

2 Likes

Please, these are feature will be useful because makes the diff cleaner and help do code reviews focused on main updates of code.

Another vote for this feature!  (I would like to be able to set it as a default on a repo-by-repo basis)

1 Like

@andreagriffiths11 Can you give us an update, did the team consider adding this as a feature?  Thanks!

2 Likes

This request is now 8 months old.

@andreagriffiths11 do you have an update?

Where can we track this feature request?

In the meantime, we can use Octo Mate Chrome extension which - among other things - adds a convenient button which saves a few clicks.

3 Likes

+1 would like to know where I can track the progress of this important, no-brainer feature request.

2 Likes

Or can we get this as a one-click option?

1 Like

Updates about this? <3

2 Likes

vote for 2020 implementation

17 Likes