Generate and save Git patches (.patch) directly from VS Code — via Command Palette, Source Control view, Explorer context menu, or the editor.
Features
Export Staged, Unstaged, or All Changes: Generate .patch files for staged changes (git diff --cached), unstaged working tree changes (git diff), all changes combined (git diff HEAD), or for a specific file.
Apply Patch Files: Apply any .patch or .diff file directly to your workspace repository using git apply.
Command Palette Integration: Easily access via Cmd + Shift + P (macOS) or Ctrl + Shift + P (Windows/Linux).
Source Control (SCM) View Actions: Export staged/unstaged changes or apply patches directly from the SCM title menu. Right-click a resource group (Staged Changes, Changes) or individual file for contextual actions.
Explorer Context Menu: Right-click any .patch or .diff file in the Explorer to apply it. Right-click any file to export its changes as a patch.
Editor Context Menu: Right-click inside a file editor or on its tab to save changes or apply a patch.