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

Cron

Aaron Friel

|
240 installs
| (0) | Free
Run commands using VS Code on a cron schedule!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cron

Run shell commands and VS Code commands on a schedule.

Forked from zokugun.cron-tasks, and with all due credit to @zokugun for creating the original extension.

cron expands on the original extension by adding support for shell commands.

Features

Configure cron.tasks in your settings.json to run shell commands and VS Code commands on a schedule.

{
  "cron.tasks": [
    {
      "type": "shell",
      "schedule": "*/5 * * * *", // Every 5 minutes
      "command": "echo 'Hello, world!'",
      "conditions": {
        "exclusive": true,
        "remoteName": "^wsl(-.*)?$",
        "shell": "bash",
      }
    }
  ]
}

Example

Using winsomnia to keep a remote machine awake:

{
  "cron.tasks": [
    {
      "schedule": "*/2.5 * * * *", // Every 5 minutes
      "command": "winsomnia 5",
      "conditions": {
        "exclusive": false, // Run in every remote
      }
    }
  ]
}

Extension Settings

This extension contributes the following settings:

  • cron.tasks: Tasks to run on a schedule.
  • cron.debug: Enables debug logging.

Known Issues

Release Notes

0.0.1

Initial release!

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