Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Text Diff CheckNew to Visual Studio Code? Get it now.
Text Diff Check

Text Diff Check

Venkateswararao Surampudi

|
1 install
| (0) | Free
Compare two versions of text or files locally — line, word, and character-level diffing with a native VS Code look and feel.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Text Diff Checker icon

Text Diff Checker

Compare two versions of text or two files, right inside VS Code — no account, no internet connection, and no data ever leaves your machine.

What it does

Text Diff Checker helps you quickly see what changed between two pieces of text or two files: what was added, what was removed, and what stayed the same — with line, word, or character-level precision, exactly the way you'd compare a file change, a config edit, or a pasted snippet from someone else.

Features

  • Paste and compare — drop old and new text into two boxes and see the difference instantly.
  • Three comparison modes — line, word, or character level, depending on how fine-grained you need the comparison to be.
  • Fine-tune the comparison — ignore whitespace, ignore leading/trailing spaces, ignore blank lines, toggle case sensitivity, show or hide unchanged lines, and control how much surrounding context is shown around each change.
  • Compare two files — select two files in the Explorer and compare them either in VS Code's own diff editor or in this extension's panel.
  • Export your results — save the comparison as plain text, Markdown, or HTML, or copy a unified diff straight to your clipboard.
  • Always visible — lives in its own icon in the Activity Bar, so it's one click away any time, in addition to its own command-palette commands and a keyboard shortcut.
  • 100% local — every comparison runs on your machine. No servers, no telemetry, no API keys.

How to use it

  1. Open it — either click the Text Diff Checker icon in the Activity Bar (the sidebar on the left edge of VS Code), or press Ctrl+Alt+D (Cmd+Alt+D on Mac), or run "Text Diff Checker: Open" from the Command Palette (Ctrl+Shift+P).
  2. Paste your text — put the original version in Old Text and the changed version in New Text.
  3. Click Compare (or press Ctrl+Enter) — the result appears below, with added lines in green, removed lines in red, and unchanged lines in between.
  4. Adjust options if needed — click the gear icon next to the title to show comparison options like ignoring whitespace or case sensitivity, then compare again.
  5. Do more with the result:
    • Swap flips old and new, so you can see the comparison from the other direction.
    • Clear empties both boxes to start over.
    • Copy puts a unified diff on your clipboard, ready to paste anywhere.
    • Export saves the result as a .txt, .md, or .html file — pick the format from the dropdown first.

Comparing two files instead of pasted text

Select two files in the Explorer (hold Ctrl/Cmd to pick the second one), right-click, and choose "Text Diff Checker: Compare Selected Files." You can then choose to open them in VS Code's own diff editor, or load them straight into this extension's comparison panel.

How it works

Text Diff Checker reads your two texts and lines them up to find the smallest possible set of changes needed to turn one into the other — the same technique source control tools use to show you what changed in a commit. Depending on the mode you pick, it compares whole lines, individual words, or individual characters, and highlights exactly what differs. Everything happens inside VS Code itself; nothing is uploaded or sent anywhere.

Settings

Search "Text Diff Checker" in VS Code Settings (Ctrl+,) to adjust these:

Setting Default What it does
Ignore Whitespace Off Treats runs of spaces/tabs as equivalent
Ignore Leading/Trailing Space Off Ignores spaces at the start/end of each line
Ignore Empty Lines Off Skips blank lines when comparing
Case Sensitive On Treats A and a as different characters
Show Unchanged Lines On Shows every line, not just the changed ones
Context Lines 3 How many unchanged lines to show around each change
Default Comparison Mode Line Line, Word, or Character
Max Input Size (KB) 2048 Warns instead of freezing on very large pasted text

Commands

Command What it does Shortcut
Text Diff Checker: Open Opens the comparison panel Ctrl+Alt+D / Cmd+Alt+D
Text Diff Checker: Compare Selected Files Compares two files selected in the Explorer —
Text Diff Checker: Clear Comparison Clears both text boxes —
Text Diff Checker: Swap Text Swaps old and new text —
Text Diff Checker: Export Results Exports the current comparison —

Privacy

Text Diff Checker makes no network requests and collects no telemetry or usage data. The text you compare stays on your computer.

License

MIT

For contributors

See CONTRIBUTING.md for the project structure, local dev setup, and build commands, or PROCESS.md for the complete release and publishing process.


Author

Venkateswararao Surampudi GitHub: @venky-1710 Portfolio: venky8086.netlify.app Email: venkysss47@gmail.com

Found a bug or have a feature request? Open an issue on GitHub.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft