See differences in the text

Open a file that has changes and what changed is marked right in the formatted text. Whether it's marked is up to Show Diff: choose View > Show Diff, click the toolbar button, or press ⇧⌘D. It's on by default; if you turn it off, that's remembered, even after a restart. One switch covers all windows.

  • Files in a Git repository: the last commit.
  • Files in a folder with Track Changes on: what you last accepted.
  • Other files have nothing to compare with, so the switch doesn't appear.

Git and Track Changes use the same switch; there's nothing to set separately.

  • Added parts have a green background, deleted parts red, modified parts yellow; the changed words get a deeper shade.
  • A color bar on the left of the text marks the changed lines. In a file with changes, the color bar on the left and the position bar on the right always show, whatever this switch says.
  • In a folder with Track Changes on, Keep and Revert buttons float next to the current change. Turn Show Diff off and those buttons hide too, but Keep File and Revert File on the review bar still work. See Keep and revert.

Press ⌥⇧⌘D, or choose View > Switch to Side by Side Diff (while side by side is on, the item reads Switch to Inline Diff):

  • Inline: changes sit within the text, with deleted content shown where it was.
  • Side by side: two columns, the old version on the left and the current one on the right.

While you preview an old version in the Inspector's History, Show Diff controls that comparison instead: on, you see this version compared with the current one; off, you see just this version. When you leave the preview, your usual setting comes back. See History of a single file.