VS Code compares two files. This compares two whole folders.
Use
Press Ctrl+Shift+P and run Compare Folders: Compare Two Folders.
Pick the first folder, then the second folder.
A screen opens that shows how the folders differ:
Tiles and a bar at the top: how many files are different, only on one side, unreadable or identical. Click a tile to hide or show that group.
Different: for text files you see right away which lines were added (green) and removed (red). Binary files show the first byte that differs. Files that differ only in line endings are marked as such.
Only in the first / second folder: with the file size.
A filter box finds a file by name. "Open diff" opens VS Code's own diff editor.
Identical files are only counted.
How it decides
Files with different sizes are different at once. Files with the same size are read byte by byte until the first difference.
No dates, no hashes, no guessing. Same bytes means same.
Safe by design
Read only. Nothing is ever changed, copied or deleted.
.git and node_modules are skipped. Symlinks are not followed.
Everything runs on your machine. No network, no tracking.