The Project Timer VS Code Extension helps developers track the time spent on specific projects. Each project's timer is stored locally and persists across sessions. It is ideal for managing productivity and monitoring time allocation for various projects.
Features
Project-Specific Timer: Tracks time spent on individual projects, stored locally in .vscode/timer-data.json.
Prompt on Open: Automatically asks users to create a timer if none exists when a project is opened.
Persistent Storage: Timer data is saved in the .vscode folder, ensuring it is specific to each project.
Commands
Command
Description
Usage
Save Project Data
Saves the current timer data to .vscode/timer-data.json.
Run to persist timer updates.
Load Project Data
Loads the current project's timer data.
Displays saved timer data in VS Code.
Development Time
Prompts the user to create a timer if none exists.
Automatically runs on project open.
How It Works
Activation:
The extension activates when VS Code starts or when a folder or workspace containing a .vscode directory is opened.
Timer Initialization:
On activation, the extension checks for a timer-data.json file in .vscode.
If no data is found, the user is prompted to create a timer.
Persistent Storage:
The timer data is stored in a project-specific JSON file located at
.vscode/timer-data.json.