Compare today’s code with an earlier commit

Visual Studio 2026 version 18.11 adds Compare with Working Tree, letting developers compare a historical commit with their current code without checking out the commit or leaving the current branch. The repository-level workflow is available from commit history or the branch list: right-click a commit and choose the comparison command. Its view lists every file that differs from the selected commit, which serves as the baseline, and lets users inspect individual diffs.

AI-written summary, checked against the cited sources. How summaries work

Image: Visual Studio Blog

Read at Visual Studio Blog