A lightweight extension created to track the time spent coding in Visual Studio Code
Features
Automatic idle detection after 1 minute of inactivity
Automatic resume of inactive sessions
Preservation and recovery of unexpectedly ended sessions
Fully autonomous with no telemetery and all data stored locally
Human-readable on demand JSON file with all your past sessions formatted
Start/stop the stopwatch via command palette or interactable status bar
Optional automatic start on workspace open
Extension Commands
the-stopwatch.start - Start new session
the-stopwatch.stop - End current session
the-stopwatch.save - Save recorded sessions (stopwatch/sessions.jsonc)
the-stopwatch.clear - Clear recorded sessions
the-stopwatch.idle - Force idle mode now
the-stopwatch.resume - Resume session if currently in idle mode
Extension Settings
the-stopwatch.autoStart.enable: Enable automatic start of session on workspace open
(new) the-stopwatch.export.auto: Specifies whether to automatically generate a report when a session ends
(new) the-stopwatch.export.detailed: Specifies whether to generate a report with every session separate, or combine inline sessions that are less than 5 minutes apart into one (total time calculated is still individual, even if sessions appear combined)
Release Notes
1.0.3
Sessions that lasted less than a mintue are no longer saved
If a session was ended by a natural idle, a minute spent before idling is no longer recorded
Settings are now updated on-the-fly without needing to restart the extension
Introduced two new settings: export.auto and export.detailed, read Extension Settings
1.0.2
Renamed "Timer" to "Stopwatch" which just makes sense
Added force idle and force resume commands
Centralized remaining messages
Now informing about the amount of time spent idle after awaking