VCode home

See what changed in a file

Agents: claude, codex, opencode · On: phone, desktop

The open file is marked with what has changed since the last commit: new lines are highlighted, and a red wedge marks where lines were taken out.

Why you would use it

The agent has edited a file and you want to read the result in context, not as a patch. The marks show the change against the file as it is now, so the lines around it are the real ones.

How to use it

  1. Open a file from the explorer. A text file opens in the editor, and the marks are drawn there.

  2. The marks are already on, if the file has changed.

    The open file with the added lines highlighted green

  3. Tap the diff button in the viewer head (#viewer-diff, "Show changes since the last commit") to turn the marks off, and again to turn them back on. The button shows only on a file with changes.

    The same file with the marks off: plain numbered lines

What you see

Options and settings

Option Default What it changes
#viewer-diff on Marks on or off. Kept for the session and applied to the next file you open, not stored

Limits and known gaps