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

Diff

Fabio Spampinato

|
642,047 installs
| (25) | Free
Diff 2 opened files with ease. Because running `code --diff path1 path2` is too slow.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Diff

Logo

Diff 2 opened files with ease. Because running code --diff path1 path2 is too slow.

Install

Follow the instructions in the Marketplace, or run the following in the command palette:

ext install fabiospampinato.vscode-diff

Usage

It adds 1 command to the command palette:

'Diff: File' // Diff the current file against another one

Settings

{
  "diff.exclude": null, // An array of globs to exclude, unless specificed it uses the "files.exclude" setting
  "diff.ignore": [".gitignore"], // An array of names for .gitignore-like files to use
  "diff.include": ["**/*"], // An array of globs to include
  "diff.showUntitledFiles": true, // Whether to show untitled files in the selector or not
  "diff.showOpenFiles": true, // Whether to show open files at the top of the selector or not
  "diff.showFoundFiles": true, // Whether to show other found files in the selector or not
  "diff.showFoundRelativeFiles": false // Whether to show other found files, using relative paths, in the selector or not
}

Hints

  • Diff against previous versions: sometimes diffing against open files is not what you want, try Git File History for diffing against previous versions of the current file.

License

MIT © Fabio Spampinato

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft