Allow users to set "Hide whitespace changes" by default #5486
-
This is a feature request that exists for 3 years (https://github.community/t/feature-request-option-to-always-hide-whitespace-changes-when-viewing-diffs/1896) and would be a very nice addition for GitHub. The problemMany users want to by default always "Hide whitespace changes" on Git PR diffs or GitHub code diffs in general. The solution
|
Beta Was this translation helpful? Give feedback.
Replies: 23 comments 40 replies
-
If not as a setting, then as part of a GET param or a cookie. |
Beta Was this translation helpful? Give feedback.
-
Sometimes I move code and the PR that I make seems very complex, but when you use "Hide whitespace changes" you can easliy realize that one change a couple of lines. I would love to be able to configure this for each PR differently. |
Beta Was this translation helpful? Give feedback.
-
This is partially addressed by a feature we shipped a few weeks ago: https://github.blog/changelog/2021-10-14-hiding-whitespace-is-now-remembered-for-each-pull-request/ GitHub now remembers "hide whitespace" for you on the pull requests you enable it on. We explored other options including a user-level setting (and we may reassess in the future), but decided the right first step was to remember it for each pull request. |
Beta Was this translation helpful? Give feedback.
-
Any updates? |
Beta Was this translation helpful? Give feedback.
-
https://github.blog/changelog/2021-10-14-hiding-whitespace-is-now-remembered-for-each-pull-request/ |
Beta Was this translation helpful? Give feedback.
-
Hi @willsmythe, could you remove the |
Beta Was this translation helpful? Give feedback.
-
I'm using https://chrome.google.com/webstore/detail/github-whitespace/fnpkdafamnbjoldglihkjjdicofghccm as a temporary fix for that. |
Beta Was this translation helpful? Give feedback.
-
This seems to work for Firefox.
https://addons.mozilla.org/en-US/firefox/addon/github-whitespace-disabler/?utm_source=addons.mozilla.org&utm_medium=referral&utm_content=search
Omar
…On Wed, Apr 20, 2022 at 4:44 PM, Vilen Topchii ***@***.***> wrote:
I'm using https://chrome.google.com/webstore/detail/github-whitespace/
fnpkdafamnbjoldglihkjjdicofghccm as a temporary fix for that.
—
Reply to this email directly, view it on GitHub
<#5486 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAONU3UK7DRCXK5HLOGOPFTVF6YXNANCNFSM5DQBTCNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I would also prefer this setting exist at a per-user level. It is almost never useful to see whitespace changes and I have to turn this off consistently. |
Beta Was this translation helpful? Give feedback.
-
Voicing support for a user-level setting to keep Hide Whitespace... it's nice to stay on the PR, sure, but working in a project where whitespace doesn't matter, and is also handled via Prettier/Eslint, this is really annoying to have to toggle it for every single PR. Any are acceptable options in my mind:
|
Beta Was this translation helpful? Give feedback.
-
My chrome extension solves for this problem until github decides to support this function: https://chrome.google.com/webstore/detail/git-well-soon/ehpeaofieafibmhiagianfjjblpnmbdo |
Beta Was this translation helpful? Give feedback.
-
@willsmythe are you aware of the negative feedback of the proposed solution? JFYI |
Beta Was this translation helpful? Give feedback.
-
Would love this to be a user setting. |
Beta Was this translation helpful? Give feedback.
-
My team is still interested in this feature, and the "answer" doesn't address the issue. |
Beta Was this translation helpful? Give feedback.
-
This would honestly be so helpful and convenient. And as the marked comment states with the world "partially", this isn't, in fact, resolved. |
Beta Was this translation helpful? Give feedback.
-
@willsmythe - not sure why this is marked as |
Beta Was this translation helpful? Give feedback.
-
I can't believe it's 2023 and this still isn't possible. Please implement it. |
Beta Was this translation helpful? Give feedback.
-
This is a problem especially hitting C# (and similar) when using the quite common 'convention' of moving the If they, when syncing the two, gave a sole '{' (and '}' ) with any indentation the same (low) synchronisation weight, it will be much more likely to get the syncing right, and the urgent need for the feature they seem to refuse to implement would be almost gone. In a more advanced version it could (for syncing purposes) consider a set of pure punctuation chars (braces, parentheses, comma... ) with any indentation as something logically 'belonging' to the and of the previous line. It would make it much more likely to get the syncing right. Obviously it shall be displayed as in the file, I'm merely talking about the logic for syncing. |
Beta Was this translation helpful? Give feedback.
-
remember-the-setting-when-revisiting isn't a solution. Please allow a default 'hide whitespace' setting. If hide-reveal whitespace is already possible, why is adding a config setting hard? |
Beta Was this translation helpful? Give feedback.
-
Make it exactly the same as split or unified view. That persists from PR to PR and it is already next to the per PR whitespace toggle. All that would change is to add whatever persistence they already use for the view to the whitespace toggle. |
Beta Was this translation helpful? Give feedback.
-
I must agree. This seems like a no-brainer to make into a user setting. Please do so! |
Beta Was this translation helpful? Give feedback.
-
A new discussion was opened on this topic: https://github.com/orgs/community/discussions/65597 |
Beta Was this translation helpful? Give feedback.
This is partially addressed by a feature we shipped a few weeks ago: https://github.blog/changelog/2021-10-14-hiding-whitespace-is-now-remembered-for-each-pull-request/
GitHub now remembers "hide whitespace" for you on the pull requests you enable it on.
We explored other options including a user-level setting (and we may reassess in the future), but decided the right first step was to remember it for each pull request.