Ignore white space in code review
Ignore white space in your diff view without losing the ability to comment.
When reviewing code, a diff with a number of trivial white space changes can create enough noise that it’s difficult to focus on code changes. Now it’s easier to understand code updates from white space changes with an improved diff view. Change your view to automatically reduce white space using the new “Diff settings” button, and start your review.
Want to comment on white space, too? No problem. Comments you add to one view always carry over to the other.
Clicking the “Diff settings” button will display options for viewing your diff.
A diff view with reduced white space has been available since 2011 by adding ?w=1
to the URL. The new button builds on this view to better support your existing workflows.
Learn more about comparing branches in pull requests
Written by
Related posts
The top 10 gifts for the developer in your life
Whether you’re hunting for the perfect gift for your significant other, the colleague you drew in the office gift exchange, or maybe (just maybe) even for yourself, we’ve got you covered with our top 10 gifts that any developer would love.
Congratulations to the winners of the 2024 Gaady Awards
The Gaady Awards are like the Emmy Awards for the field of digital accessibility. And, just like the Emmys, the Gaadys are a reason to celebrate! On November 21, GitHub was honored to roll out the red carpet for the accessibility community at our San Francisco headquarters.
Students: Start building your skills with the GitHub Foundations certification
The GitHub Foundations Certification exam fee is now waived for all students verified through GitHub Education.