Open a git repository in VS Code with local changes
PressCmd+Shift+D (macOS) or Ctrl+Alt+D (Windows/Linux) to send your diff to Copilot Chat
Review suggestions from Copilot Chat
Demo
Features
🚀 One-click code review: Send your git diff to Copilot Chat instantly
🎯 Smart branch detection: Automatically finds your main branch or let you customize it
📋 Optional spec input: Add context or acceptance criteria for more relevant suggestions
👀 Preview option: Review your diff before sending to Copilot Chat
⚙️ Configurable: Set your preferred base branch in VS Code settings
Commands
Command
Shortcut
Description
MCP: Send Git Diff to Copilot Chat
Cmd+Shift+D (macOS) Ctrl+Alt+D (Windows/Linux)
Send your current diff to Copilot Chat
MCP: Select Main Branch
—
Choose the main branch to diff against
Configuration
Configure the extension via VS Code settings:
{
"copilotGitReview.mainBranch": "main"
}
copilotGitReview.mainBranch (string): The default base branch to diff against (e.g., main, master, or origin/main). Leave empty to be prompted on first use.
How It Works
Collects the git diff relative to your main branch
Allows you to add optional context (spec/requirements)
Optionally previews the diff before sending
Sends the formatted diff to Copilot Chat
Receive code review feedback directly in the Chat interface
Requirements
VS Code 1.85.0 or later
Copilot Chat extension installed
Git repository with local changes
Git CLI available on your PATH
Privacy & Security
The extension only collects the git diff from your repository
No other files are automatically uploaded
Avoid including sensitive data in your diffs
Documentation
For detailed information, troubleshooting, and advanced usage, see DETAILS.md.
Contributing
Contributions are welcome! Please open a PR or issue on GitHub.