Expanding context in diffs
Whether it’s reviewing community changes to an Open Source project, or using GitHub Flow on a private project, we all spend a lot of time looking at diffs. But to…
Whether it’s reviewing community changes to an Open Source project, or
using GitHub Flow on
a private project, we all spend a lot of time looking at diffs.
But to really understand a code change, we sometimes need to see more than just
the default three lines of context.
Today we’re excited to announce a new feature that makes this possible.
Using the new unfold button in the gutter of a diff, you can reveal
additional lines of context with a click.
You can keep clicking unfold until you’ve revealed the whole file, and the feature is
available anywhere we render diffs.
Happy code reviewing!
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.