Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>DayNight Theme SchedulerNew to Visual Studio Code? Get it now.
DayNight Theme Scheduler

DayNight Theme Scheduler

Levis Agaba

|
5 installs
| (0) | Free
Automatically switch VS Code themes based on configured time ranges.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DayNight Theme Scheduler

A Visual Studio Code extension that automates theme switching depending on the time of day.

DayNight Theme Scheduler UI

Features

  • Configure up to four non-overlapping time ranges.
  • Assign a VS Code theme to each range.
  • Accept both 12-hour inputs like 6:30 PM and 24-hour inputs like 18:30.
  • Support overnight ranges such as 10:00 PM to 6:00 AM.
  • Search installed themes from each range card before selecting one.
  • Edit schedules in a glassmorphism-style UI from the command palette or the status bar.

How it works

  1. Open DayNight: Open Theme Scheduler from the command palette.
  2. Enable up to four ranges and select a theme for each one.
  3. Enter start and end times in either format.
  4. Save the schedule. The extension applies the matching theme immediately and again at each boundary.

Development

Files

  • package.json: extension manifest and contribution points
  • src/extension.js: activation, persistence, theme switching, webview wiring
  • src/scheduler.js: time parsing, validation, overlap detection, active-range logic
  • src/webview.js: scheduler UI markup, styling, and client-side behavior
  • src/test/scheduler.test.js: scheduler unit tests

Run tests

npm test

Install dependencies

Use npm install for this project. The checked-in lockfile is package-lock.json.

Package locally

Install dependencies, then package with your preferred VS Code extension workflow, for example vsce package.

Notes

  • When two ranges overlap, saving is blocked to keep the active theme deterministic.
  • A range with the same start and end time is treated as all day.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft