Persist "Hide whitespace" preference across PRs #65597
Replies: 60 comments 32 replies
|
Note that this proposal already has a lot of support in the older thread: https://github.com/orgs/community/discussions/5486 |
|
Personally I believe it would be even better if it was possible to set per filetype, as not ALL filetypes has whitespaces as pure cosmetics. But ignoring whitespaces should also be coupled with not seeing solo { and } with a particular indentation as a good match for synchronisation. that causes bad syncs for e.g. C# and similar. |
|
Yes, please add this, at least on a per-user level. |
|
Reviewing code is a BIG part of the time i spend on github. Hiding whitespace is such a vital feature, i don't unterstand how this cannot be a priority. You already have the functionality, just persist it 🙏 |
|
My workflow literally involves manually turning on this flag on every single PR I do, because the vast majority of files I review the white-space does not matter. |
|
It's amazing that a website literally for computer programmers can cause so much disruption in a programmer's flow. Please add this as a persistent option, it is annoying and slows me down having to check it every time. |
|
One more vote to please oh please make this a persistent user-level (and/or repo-level) setting! It's quite rare that whitespace changes matter in our workflows; swapping the default to ignore it, would save so much time. |
|
A friend directed me to this as an interim solution: https://chromewebstore.google.com/detail/git-well-soon/ehpeaofieafibmhiagianfjjblpnmbdo I.e. A chrome plugin that does exactly what we want! |
|
A dev could literally implement this in a day at max. Now imagine how many human work hours are wasted by developers coming here to read through this thread, vote, and comment. |
|
Please implement this. The previous thread has many comments. I heard devs complaining about this 3 years ago. It's 2024 and you have the backing of Microsoft. Please implement this. |
|
This would be amazing to have! How can we get this feature prioritized? I find myself reviewing large PRs way too often, only to realize that its 95% whitespace changes. My company has strict policies on chrome extensions so that is not a viable option unfortunately. |
|
+1 on request for this user-level setting to be added. |
|
This is one of the most annoying daily things I do (and that says a LOT) so please please prioritize 🙏 |
|
Yet another request for this. I've written my own AppleScript to add (AppleScript below if anyone wants it. I use the excellent FastScripts to give it a keyboard shortcut.) tell application "Safari"
set currentDoc to front document
set theWindow to window 1 where its document is currentDoc
tell (current tab of theWindow)
set URL to URL & "?w=1"
end tell
end tell |
|
Please add this! |
|
Why is this still not implemented yet! It's a simple option and everybody wants it, PLEASE! I want to view commits with whitespace hidden by default. Please add a check in user profile for this, or something. I beg you! |
|
Interestingly enough, the GitHub diff doesn't show Git whitespace errors anymore (file contained no trailing line break before the commit)... maybe it's hiding whitespace a bit too much now 😄 |
|
I was so tired of having to turn off whitespace changes on every PR that I wrote a Chrome extension that just does it for every diff page on GitHub. Please let us just choose the default value for this for ALL PRs so I can stop this madness. |
|
I agree it'd be great to set this by default. Meantime, you can add this as a bookmarklet: |
|
IMO, the pull request page is the single most important page on all of GitHub. It's where the act of collaboration actually happens in the repository. The diff view is the most important tab on that page. And this is a really irritating thorn in the side of everyone looking at a diff. |
|
PLEASE add this. Right now the existing setting doesn't work if you have a large diff. I click "Load Diff" link because "Large diffs are not rendered by default." and it does NOT ignore whitespace. Only what is actually visible when I click the option gets whitespace ignored. This implementation is so incredibly lazy! It makes reviewing some files take an order of magnitude longer. You're a tool maker, please improve your tool! |
|
Absolutely wild this request has been open so long. Do Github devs not use their own product? |
|
@willsmythe, as you answered the previous thread, can you please give us an update on this long running and highly expected request ? |
|
Bump. It's mind-blowing how such a simple feature, requested by so many people, is ignored for such a long time... |
|
Workaround in the meantime https://chromewebstore.google.com/detail/github-whitespace/fnpkdafamnbjoldglihkjjdicofghccm |
|
It's just stupid that this was not yet implemented. The original post is from 2021, and this is from 2023 and we have no answer. Can't expect much from Microslop. |
|
Absolutely floored that this feature is STILL not implemented in the year-of-our-lord-2026 despite the overwhelming demand by the community at large for over five years. Just let us write the damn feature for you at this point.... It's a persisted settings toggle that changes a query string for goodness sake |
|
Thanks Github :) |
|
Up, I really need this feature :) |

Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Product Feedback
Body
Hey team, thanks for all your hard work!
What are your thoughts on persisting the "Hide whitespace" preference in diff view settings across PRs, as the Unified/Split preference is persisted? I pretty much turn "Hide whitespace" on for every diff I look at, so it'd be nice to only ever do that once :)
Upon searching for similar discussions, I found an older thread that mentioned that this setting is intended to store your preference per-diff. To maintain that functionality, "Hide whitespace" could be added as a user-level setting, defaulting to that value when looking at a PR for the fist time, then still allowing it to be set a t a per-diff level on the diff itself.
Thanks for considering!
All reactions