Diff Viewer

The diff viewer shows file changes as a unified or split view. It opens when you click a file in the Source Control tab or a commit in Commit History.

What it shows

The viewer handles two kinds of diffs:

  • Working copy diffs: staged and unstaged file changes from the Source Control tab.
  • Commit diffs: the full changeset for a selected commit from the Commits tab.

Unified view shows deletions and additions inline. Split view places the old version on the left and the new version on the right. Toggle between them with the view switcher in the diff toolbar.

Adding review comments

Select a line or a range of lines in the diff, then write a comment in the box that appears. You can add comments to as many lines as you like across multiple files. Comments queue in the Review Bar as you go.

When you’re done annotating, use the code review workflow to send them to your Review Agent.

Next steps