Copilot Compare

A Visual Studio Code extension that displays GitHub Copilot changes in a side-by-side diff view instead of the default inline presentation.

Features
- Side-by-Side Diff View: View Copilot-generated changes in a familiar diff format
- Automatic Detection: Automatically detects large code changes that are likely from AI assistants
- Status Bar Integration: See pending changes at a glance
- Configurable Sensitivity: Adjust detection sensitivity to your workflow
Usage
Automatic Mode
When enabled, the extension automatically opens a side-by-side diff when it detects Copilot-like changes to your code.
Manual Mode
- Make changes to your code (manually or via Copilot)
- Press
Cmd+Shift+D (Mac) or Ctrl+Shift+D (Windows/Linux)
- Review changes in the diff view
Commands
| Command |
Keybinding |
Description |
Copilot Compare: Show Side-by-Side |
Cmd+Shift+D |
Open diff view for current file |
Copilot Compare: Toggle Auto-Open |
- |
Toggle automatic diff opening |
Copilot Compare: Show Status |
- |
Show extension status |
Configuration
| Setting |
Type |
Default |
Description |
copilotDiff.autoOpenDiff |
boolean |
false |
Automatically open diff when changes detected |
copilotDiff.diffViewColumn |
string |
"beside" |
Where to open diff (beside, active, one, two) |
copilotDiff.detectionSensitivity |
string |
"medium" |
Change detection sensitivity (low, medium, high) |
copilotDiff.stateTTL |
number |
300000 |
Time-to-live for cached states (ms) |
copilotDiff.minChangeLines |
number |
3 |
Minimum lines changed to trigger detection |
In action
Without Copilot Compare:

With Copilot Compare:

Shows moved code:

| |