Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Diff SaverNew to Visual Studio Code? Get it now.
Diff Saver

Diff Saver

Cole Finlayson

|
176 installs
| (0) | Free
paste text into untitled files and save as an .html file or .patch file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

diff-saver README

This extension was an exercise in creating a way to share git diffs of specific parts of files. Often GitHub will show more parts of the files changed than actually did, or get messy with whitespace or rearranging changes. This allows users to paste in the code before and after the changes, and will spit out a file that can be shared or viewed by anyone. The biggest hurdle to this extension was that GitHub doesn't allow you to upload .html files. You can save your diff as a .patch file, which can be uploaded to GitHub, and then opened in VSCode and viewed (usually with an extension).

Use

I suggest opening a new VSCode instance by pressing Ctrl (Cmd) + Shift + N if you have another monitor available. It just makes it cleaner to use.

In the new instance, press Ctrl (Cmd) + Shift + P and search for any of the commands below

Version Badge Snyk Badge

Features

There are 3 commands in this extension.

  1. Open Untitiled Files to Paste Text - this will open two files in your editor for you to paste the two different texts you want to diff
  2. Create Shareable .html File in Downloads - this will diff the two files, parse the diff to html, and then store the html file in your downloads folder
  3. Create Shareable .patch File in Downloads - this will diff the two files and then store the patch file in your downloads folder - not as pretty, but can be uploaded to GitHub

Requirements

I suggest downloading an extension to view .patch files. The one I prefer is Diff Viewer. It actually uses the same library as this extension does under the hood

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