DEV Community

Cover image for Fixing Git Diff for Binary .xlsx, .parquet, .sqlite, and Wide .csv Files in VS Code & Cursor
Lukas
Lukas

Posted on Originally published at lukaslabs.top

Fixing Git Diff for Binary .xlsx, .parquet, .sqlite, and Wide .csv Files in VS Code & Cursor

Clicking a modified .xlsx, .parquet, or .sqlite file in VS Code Source Control greets you with The file is not displayed in the text editor because it is either binary or uses an unsupported text encoding. And for .csv files, inserting a single row at the top or swapping two columns turns the entire diff red and green.

Why primary-key alignment changes everything

When you align rows by a unique key column (id, sku, uuid, or an explicit SQLite PRIMARY KEY) instead of line numbers:

  • Reordered rows show zero false diffs.
  • Reordered columns are flagged cleanly in a schema diff banner instead of breaking every row.
  • Modified rows highlight only the exact changed cells (old -> new).
  • Duplicate keys can be disambiguated deterministically (key [dup #2]) so rows are never silently dropped.

Try it offline in your browser or inside VS Code / Cursor

(Disclosure: Built independently at Lukas Labs.)

Top comments (0)