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 lines that were taken out stand where they used to be.

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.

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

    The open file with the added lines highlighted green and the line that was removed sitting above them with a minus for its number

  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 same file with the marks off: plain numbered lines, and the removed line gone

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