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
Announcing GitHub Secure Open Source Fund: Help secure the open source ecosystem for everyone
Applications for the new GitHub Secure Open Source Fund are now open! Applications will be reviewed on a rolling basis until they close on January 7 at 11:59 pm PT. Programming and funding will begin in early 2025.
Software is a team sport: Building the future of software development together
Microsoft and GitHub are committed to empowering developers around the world to innovate, collaborate, and create solutions that’ll shape the next generation of technology.
Does GitHub Copilot improve code quality? Here’s what the data says
Findings in our latest study show that the quality of code written with GitHub Copilot is significantly more functional, readable, reliable, maintainable, and concise.