Diff Tool
The Diff Tool compares the file selected in the left pane with the file selected in the right pane. It opens over the panes in the same window and tab. Close it, and everything behind it is exactly as you left it.

Compare two files
- In the left pane, select one file.
- In the right pane, select the other file. The names do not need to match.
- Choose Commands ▸ Diff Tool.
The left pane's file is always the left side and the right pane's file the right side. If a pane shows a preview, the previewed file is used.
If the Diff Tool cannot start, a message says why, for example that a pane has no file selected, has more than one item selected, or shows its terminal. To compare two folders, use Synchronize Directories.
Read the comparison
Both files are shown with line numbers and the colors of their language. Removed lines are marked − on a red tint, added lines + on a green tint, and the words that changed inside a line are highlighted. Lines that belong together sit on the same row, and both sides scroll together.
Next to each side is a minimap showing where the changes are; click it to jump there.
The Diff sidebar on the left holds:
- Comparison — the two files, with their locations
- View — Side by Side, Unified or Split
- Display — Show line numbers, Show minimap, Highlight changes, Word wrap
- Diff Options — what counts as a change
- Actions — Apply Left → Right, Apply Right → Left, Copy Change and Undo Apply
- Changes — the change counter, Previous and Next, and a list of every change
- at the bottom, a summary counting the changes, additions and deletions
You can drag the sidebar's edge to make it wider or narrower.
Views
- Side by Side (the default) — both files next to each other, with empty rows where one side has no matching line.
- Unified — one column: unchanged lines once, then the removed (−) and added (+) lines of each change.
- Split — both files next to each other as they are, without empty rows, with connectors between matching changes. Scrolling keeps matching lines level.
Diff Options
- Ignore whitespace, Ignore blank lines, Ignore case — differences of that kind do not count.
- Ignore line endings — files that differ only in Windows (CRLF) and Mac (LF) line endings compare as equal. When this is off and the endings differ, a warning says which side uses which.
- Use semantic diff — for Swift, Python, TypeScript and JavaScript, and Rust, changes are described by what they mean in the code, such as an added function or a renamed property. Other file types are compared line by line, and the sidebar says so.
Changing an option compares the files again. Display settings only change how they look. All settings apply to this comparison only.
Move between changes
- Press ⌘] or ⌘[, or click Next and Previous in the sidebar. The counter shows, for example, 2 of 5. The keys stop at the first and last change.
- Click a change in the sidebar's list to go to it. Each entry shows its lines and a short description.
Both sides scroll so the change is visible.
Find in both files
Press ⌘F and type in Find in both files. Matches are highlighted on both sides with a counter. Press Return in the field, or the next and previous match keys, to move between matches. The first Esc clears the search; the next one closes the Diff Tool.
Copy or apply a change
Select a change first (with the keys or the list), then:
- Copy Change puts the change on the clipboard as a patch. It never changes a file.
- Apply Left → Right replaces the right file's lines for this change with the left file's lines. Apply Right → Left does the opposite.
Applying asks first (Apply this change to “name”?), then saves the file straight away and compares again.
To take it back, click Undo Apply or press ⌘Z. Undo only works while the file is still exactly what the apply wrote. If it has changed since, Vektor Commander leaves it alone and tells you why.
An apply button is dimmed, with the reason, when the target cannot be written, has unsaved edits of its own, or no change is selected.
To copy only some lines, select them in a side and use ⌘C.
Edit a side
- Click Edit in the header above a side. The view switches to Split, so you see the file as it is.
- Type your changes. The comparison follows as you type, and the side's header says Edited.
- Click Save in the header, or press ⌘S, which saves every edited side.
- Click Done to stop editing. Your edits stay.

Each side has its own undo history. To save a side under a new name, click into it and press ⇧⌘S, or use the side's … menu. If you close the Diff Tool, the tab or Vektor Commander with unsaved edits, it asks whether to save them first.
A side that cannot be written shows Read Only in its header, with the reason, and has no Edit button.
More for each side
The … menu above each side offers Open, Preview in Pane, Open Folder in New Tab, Reveal in Finder (for files on your Mac), Copy Path, Save, Save As… and Revert to Saved.
Special cases
- Same file on both sides — No differences, with a note that both sides are the same file.
- Identical files — No differences.
- JSON files — a Raw | Structured choice appears. Structured lists added and removed keys, changed values and array entries, each with its path.
- Binary files — Binary files cannot be compared as text. The Diff Tool shows each file's type, size, modification date and fingerprint, and whether the two files are identical.
- A picture and a text file — Cannot compare these files.
- Files larger than 10 MB — Large file, with a Compare first 10 MB button. That comparison is read-only.
- A file that cannot be read — Unable to compare files, with the reason and Retry and Close Diff buttons.
- A file inside an archive cannot be compared.
- Remote files — files on S3, SFTP and other connections are compared like local ones, from a temporary copy that is removed when the comparison closes. Applying and editing follow what the location allows.
- The file changes on disk while you compare and you have not edited it here — the comparison updates.
Close the Diff Tool
Press Esc, click × in the sidebar, or choose Commands ▸ Diff Tool again. The panes, their selections, scroll positions and terminals are exactly as before.
Each tab has its own comparison. Switching to another tab shows that tab's panes; switching back shows the comparison again, where you left it. Closing the tab ends its comparison.

