Prefer rich/rendered diff by default for supported file types in pull requests #203750
Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
this would save a surprising amount of pointless clicking on docs-heavy PRs. one thing i would avoid is a single global setting for every supported file type. i may want the per-file toggle should also stay local. switching one file back to source view should not silently change the saved preference for future PRs. there is one small footgun around inline comments too. if some comments are only visible in the source diff, rich view should at least show a notice like not a huge feature, but a really nice quality-of-life improvement for people reviewing |
|
Not ideal but you can run this in your browser's console as a workaround.
This will target all file types, though. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
Body
Summary
Please add a user preference to open the rich/rendered diff by default for supported file types on the pull request Files changed page (Markdown,
images, dependency manifests, notebooks, etc.), with source/unified still one click away.
Today, rich diff is available via a per-file control, but that choice is not remembered across files or pull requests. Unified vs split is remembered;
rich vs source is not. Images already open with a rich preview by default — this request is to extend that pattern (as an opt-in preference) to other
supported types, especially Markdown.
Problem
On documentation-heavy PRs (ADRs, READMEs, specs, design docs), reviewers often want the rendered/rich view first. With many Markdown (or other supported)
files in one PR, each file requires a manual toggle. That friction is small per file and large in aggregate, so people stay on the source diff even when
rich would be better for the review.
There does not appear to be an existing Community discussion specifically asking for a default rich-diff preference (related threads below focus on
commenting on rich/rendered Markdown, or other file types).
Proposed solution
Add a user-level preference, e.g.:
Optional stretch (not required for v1): remember the last-used image comparison mode (2-up / swipe / onion skin).
Why this is low-risk / incremental
(changelog).
Related discussions (not duplicates)
is the main ask)
Happy to clarify workflows or provide screenshots of docs-heavy PRs if useful.
All reactions