Track your coding time and calculate your earnings in real-time directly within VS Code.
Features
Real-time Earnings Tracking: See your current earnings based on your hourly rate in the status bar.
Interactive Dashboard: Visualize your productivity with detailed bar charts (using Chart.js). Filter activity by week or month, and inspect daily breakdown with tooltips.
Smart Daily Reset: The tracker automatically resets your daily session counters at midnight (or whenever the date changes) while securely saving your history. You always see today's progress in the status bar.
Smart Notifications: Notifications about time and earnings are persistent and will remind you after the configured interval of active coding, even across VS Code restarts.
Inactivity Detection: Automatically pauses tracking after a configurable period of inactivity (mouse/keyboard events). Tracking continues even if the window loses focus, as long as VS Code remains open.
Manual Control: Pause and resume tracking manually when needed.
Customizable: Set your own hourly rate, currency, and tracking intervals.
Installation (Manual)
Download the .vsix file from the Releases page (or provided artifact).
Open Visual Studio Code.
Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).
Click on the "..." (Views and More Actions) menu in the top right corner of the Extensions view.
Select Install from VSIX....
Navigate to and select the downloaded .vsix file.
Reload VS Code if prompted.
Configuration
You can configure the extension settings via File > Preferences > Settings (or Code > Settings > Settings on macOS) and searching for devTrack.
Setting
Description
Default
devTrack.hourlyRate
Your hourly rate for calculating earnings.
50
devTrack.currency
The currency symbol or code to display (e.g., USD, EUR, $).
USD
devTrack.checkInterval
Interval in minutes for earnings notifications (set to 0 to disable).
60
devTrack.inactivityMinutes
Number of minutes of inactivity (no mouse/keyboard input) before pausing tracking (set to 0 to disable).
30
Commands
Access these commands via the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
DevTrack: Show Dashboard: Opens the dashboard to view detailed statistics.
DevTrack: Reset Daily Stats: Resets your tracking data for the current day.
DevTrack: Pause Tracking: Manually pause time tracking.
DevTrack: Resume Tracking: Resume time tracking.
Release Notes
1.2.0
Advanced Dashboard: Added an interactive bar chart with Y-axis labels and tooltips to visualize weekly and monthly activity.
Daily Reset: Implemented logic to automatically reset daily stats (time and earnings) when the day changes, ensuring the status bar reflects only today's progress.
UI Improvements: Enhanced styling and filtering options for the dashboard.
1.1.1
Fixed notification issues by implementing persistent tracking progress.
Added manual Pause and Resume commands.
Improved notification messages to include time worked.