Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code HoursNew to Visual Studio Code? Get it now.
Code Hours

Code Hours

TensaiKun

|
31 installs
| (0) | Free
Tracks your coding time in IDLE, and displays stats and leaderboard on our webapp, Code Hours.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Watch

Code Watch Logo
Tracks your coding time while you work.

Usage

Once installed, Code Watch is ready to use:

  • Set Session Key:
    Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P) and type Set Session Key to configure your session key.

    Where to get Session key ?
    1. Go to CodeHours.
    2. Login using your Twitter or Google Account.
    3. Copy Session Key from the navbar.

    Main Interface

  • Toggle Stopwatch:
    Use the Command Palette again to execute the Toggle Coding Timer command to start or stop the stopwatch.

    Stopwatch

Table of Contents

  • Introduction
  • Features
  • Installation
  • Commands
  • Configuration
  • Screenshots
  • Contributing
  • License
  • Contact

Introduction

Code Watch is a lightweight Visual Studio Code extension that helps you track your coding time while you're coding. It provides easy-to-use commands to set a session key and toggle a stopwatch timer directly from VS Code, allowing you to monitor your productivity without leaving your editor.

Features

  • Time Tracking: Monitor your coding sessions and idle time effortlessly.
  • Customizable Commands: Easily set your session key and toggle the coding timer.
  • User-Friendly Interface: Seamless integration with VS Code, keeping the interface minimal and distraction-free.
  • Configuration Options: Customize your extension settings through the VS Code settings panel.

Commands

The extension contributes the following commands:

  • codehours.setToken
    Title: Set Session Key
    Description: Allows you to set your session key for Code Watch.

  • codehours.toggleStopwatch
    Title: Toggle Coding Timer
    Description: Starts or stops the coding stopwatch.

Installation

  1. Via Visual Studio Marketplace:

    Open the Extensions view (Ctrl+Shift+X or Cmd+Shift+X) in VS Code, search for "Code Watch", and click Install.

  2. Manually:

    • Clone or download the repository.
    • Run the following command in the extension folder to package it:
      vsce package
      
    • Install the generated .vsix file by running:
      code --install-extension codehours-0.0.1.vsix
      

Configuration

You wouldn't generally need to follow this, you can configure the extension using the commands.

Customize your Code Watch settings by navigating to File > Preferences > Settings (or using Ctrl+,/Cmd+,) and searching for "Code Watch Settings". The configuration options include:

  • codehours.sessionKey
    Type: string
    Default: ""
    Description: The session key for the Code Watch extension.

Contributing

Contributions are welcome! If you would like to contribute to Code Watch, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature-name).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/your-feature-name).
  5. Open a Pull Request.

Please ensure your code follows the project's style guidelines and includes appropriate tests.

License

This project is licensed under the MIT License.

Contact

For questions, suggestions, or support, please reach out to:

  • GitHub: Sarthak-Sama
  • Twitter: Sarthak_Sama
  • LinkedIn: Sarthak Saklani

Get Tracked, Stay Cracked ! 🚀

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft