vscode-git-diff


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:
- Install from the Visual Studio Code Marketplace
- 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
}
]
}
| |