Ignore white space in code review

Image of Bryan Clark

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.

diff settings button

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

Join us at GitHub Universe

Our largest product and community conference is returning to the Palace of Fine Arts in San Francisco, November 13-14. Hear what's next for the GitHub platform, find inspiration for your next project, and connect with developers who are changing the world.

Get tickets

GitHub Actions now supports CI/CD

GitHub Actions makes it easier to automate how you build, test, and deploy your projects on any platform, including Linux, macOS, and Windows. Try out the beta before GitHub Actions is generally available on November 13.

Sign up for the beta