Compare file versions

Every save keeps a version of the file.

Before you start

You need app/page.tsx, saved more than once. See Edit files.

Compare versions

  1. Right-click the file's tab, page.tsx.
  2. Click Versions. You should now see up to 30 of the file's versions, newest first, each by its time under its day, such as Today.
  3. Click the last version in the list. It opens in a tab of its own.
  4. Open Editor actions.
  5. Click Compare draft. You should now see a tab that reads page.tsx ↔ Draft, with the changed lines marked.
  6. Click the last version in the list again.
  7. Open Editor actions.
  8. Click Select for compare.
  9. Click the newest version.
  10. Open Editor actions.
  11. Click Compare with selected. You should now see a tab that reads page.tsx ↔ page.tsx, with the changed lines marked.

Next steps