Overview Version History Q & A Rating & Review
Copilot Metrics Extension
A comprehensive VS Code extension that tracks and analyzes GitHub Copilot usage and code changes in your development workflow. Get detailed insights into your coding productivity, acceptance rates, and change patterns.
Features
Real-time Change Tracking : Monitors all code changes including Copilot suggestions, manual edits, and inline completions
Comprehensive Metrics : Tracks lines added/deleted, characters modified, files changed, and acceptance/rejection rates
Intelligent Change Detection : Differentiates between user-initiated changes, Copilot suggestions, and auto-complete acceptances
Detailed Reports : Generates both JSON and Markdown reports with productivity metrics and session summaries
Project-aware Analysis : Provides project-specific insights with relative file paths and project context
Session Management : Tracks changes across coding sessions with automatic cleanup and reset functionality
Key Metrics Tracked
Acceptance Count : Total number of accepted changes
Rejection Count : Number of rejected/undone changes
Auto-Complete Acceptance Count : Inline Copilot suggestions accepted
Net Lines Change : Overall lines of code impact
Files Modified : Number of unique files changed
Productivity Rates : Lines per minute, characters per minute, acceptance rates
Commands
Copilot Metrics: Generate Report - Create a comprehensive metrics report
Copilot Metrics: Show Summary - Display session summary in markdown format
Copilot Metrics: Reset Data - Clear all tracked metrics and start fresh
Usage
Install the extension
Start coding in your VS Code workspace
The extension automatically tracks all changes in the background
Use the Command Palette (Ctrl+Shift+P) to access reports and summaries
View detailed metrics including acceptance rates, productivity stats, and file-level changes
Output
The extension generates detailed reports in two formats:
JSON Report : Machine-readable data for integration with other tools
Markdown Summary : Human-readable report with charts and productivity metrics
Reports include project name, session duration, change statistics, and file-level breakdowns with relative paths.
Requirements
Visual Studio Code 1.60.0 or higher
GitHub Copilot extension (for Copilot-specific tracking)
Installation
Install from the VS Code Marketplace or package locally using:
vsce package
Privacy
This extension only tracks local coding metrics and does not send any data externally. All metrics are stored locally within your workspace.
Release Notes
1.0.0
Initial release featuring:
Complete change tracking system
Copilot integration
Comprehensive reporting
Session management
Project-aware analytics
Enhance your coding productivity with detailed insights into your development workflow!