Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-git-diffNew to Visual Studio Code? Get it now.
vscode-git-diff

vscode-git-diff

gymynnym

|
2 installs
| (0) | Free
A VSCode extension to compare the active file against a selected commit from history. (similar to JetBrains IDEs' Compare.Selected action)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-git-diff

screenshot

GitHub Release Visual Studio Marketplace Installs

A VSCode extension to compare the active file against a selected commit from history. (similar to JetBrains IDEs' Compare.Selected action)

Installation

There are 2 ways to install this extension:

  1. Install from the Visual Studio Code Marketplace
  2. Download VSIX file from GitHub Releases

Commands

  • vscode-git-diff.openChange : Open Git Diff with commit selection

Keybindings

VSCodeVim Keybindings: for nerds (Example)

{
  "vim.normalModeKeyBindingsNonRecursive": [
    {
      "before": ["space", "g", "d"],
      "commands": [{ "command": "vscode-git-diff.openChange" }] // Git diff with commit selection
    },
    {
      "before": ["space", "g", "D"],
      "commands": [{ "command": "git.openChange" }] // Default git diff
    }
  ]
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft