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
Inside the research: How GitHub Copilot impacts the nature of work for open source maintainers
An interview with economic researchers analyzing the causal effect of GitHub Copilot on how open source maintainers work.
OpenAI’s latest o1 model now available in GitHub Copilot and GitHub Models
The December 17 release of OpenAI’s o1 model is now available in GitHub Copilot and GitHub Models, bringing advanced coding capabilities to your workflows.
Announcing 150M developers and a new free tier for GitHub Copilot in VS Code
Come and join 150M developers on GitHub that can now code with Copilot for free in VS Code.