Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git PatchNew to Visual Studio Code? Get it now.
Git Patch

Git Patch

Parag Diwan

|
120,235 installs
| (9) | Free
Creates supplied diff output (i.e. 'a patch') and applies it to files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Patch

IDE's like Intellij provides a feature to create and apply a patch. This is an attempt to have the same feature available for VSCODE.

[0.2.1] - 2018-02-10

Added

  • Provides a context menu under SCM & File Explorer.
  • Removed extra layer of confirmation.

[0.2.0] - 2018-02-05

Added

  • Better way to create & apply patch via dialog.
  • Save patch at custom location.

Features

  • Creates a GIT patch from Staged files on the fly.
  • Creates a GIT patch from Unstaged files on the fly.
  • Apply a patch by selecting a patch file on the fly.

How this works

Git create patch preview

Requirements

You must have git installed already.

Known Issues

  • Patch sometimes fails due to HUNK errors.
  • Patch doesn't take care of conflicts, if any.

Kindly provide your feedback to improve this extension.

Enjoy!

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