⚡ Activity Tracker — VS Code Extension
Track your coding activity in real-time: keystrokes, active/idle time, file changes, saves, language breakdown, and more.
Features
| Feature |
Description |
| Keystrokes |
Counts every character typed, with per-minute rate |
| Active Time |
Tracks how long you're actively coding |
| Idle Detection |
Detects inactivity after configurable timeout |
| Save Events |
Counts file saves |
| File Changes |
Tracks file creates, deletes, renames |
| Language Detection |
Breaks down activity by programming language |
| Dashboard |
Rich HTML dashboard with live-updating stats |
| Status Bar |
Quick stats always visible in the status bar |
| Export |
Export all stats as JSON |
| Milestones |
Notifications at every 1,000 keystrokes |
Installation
From Source
# Clone / copy the project
cd vscode-activity-tracker
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Package as .vsix
npx @vscode/vsce package --allow-missing-repository
# Install in VS Code
code --install-extension activity-tracker-1.0.0.vsix
Development
# Open in VS Code
code .
# Press F5 to launch Extension Development Host
# The extension activates automatically on startup
Usage
Status Bar — After activation, you'll see live stats (⌨️ keystrokes · 💾 saves · ⏱️ time) in the bottom-left. Click it to open the dashboard.
Dashboard — Open via:
- Click the status bar item
- Command Palette →
Activity Tracker: Show Dashboard
Reset — Command Palette → Activity Tracker: Reset Statistics
Export — Command Palette → Activity Tracker: Export Statistics (JSON)
Configuration
| Setting |
Default |
Description |
activityTracker.idleTimeoutMinutes |
5 |
Minutes before marking as idle |
activityTracker.enableStatusBar |
true |
Show/hide the status bar item |
activityTracker.enableNotifications |
true |
Milestone notifications |
Project Structure
├── src/
│ ├── extension.ts — Entry point (activate/deactivate)
│ ├── tracker.ts — Core activity tracking engine
│ ├── dashboard.ts — Webview panel with HTML dashboard
│ └── statusbar.ts — Status bar controller
├── package.json — Extension manifest
└── tsconfig.json — TypeScript config
License
MIT
| |