Important: VS Code 1.89 has included some changes that have broken tracking the system theme and being able to temporarily override a single window with another theme -- see: issue #17.
Single click toggle between dark mode and light mode using an icon in the Windows taskbar notification area (system tray). This may be useful for anyone working under significantly changing background or reflected light levels.
This is an open source (MIT License) application, and the project repository is at:
-
Download the installer
toggle.msi
from: -
Double-click to run the downloaded installer. As Windows will not recognize the program, you may need to select More info / Run anyway. Follow the prompts to install the application.
-
The application will run after installation (by default), and an icon for Toggle Dark/Light Mode will appear in the taskbar notification area (system tray). It might be in the Taskbar overflow menu behind the ᐱ symbol (this can be changed in the Taskbar Settings).
-
Left-click the icon to immediately toggle dark/light mode.
-
Use the shortcut key combination Win+Shift+D to toggle between dark and light mode.
-
Right-click the icon for a menu:
- Toggle Dark/Light Mode - Toggles between dark and light modes (same as left-clicking the icon).
- Auto-Start - Toggles whether the executable will be automatically run when you log in.
- Save Debug Info - This will prompt to save a text (
.txt
) file with debugging information. - About - Information about the program.
- Exit - Stops the program and removes the icon. (If Auto-Start is enabled, it will start when you log-in again)
You do not need to install the application, but instead just download and run the toggle.exe
executable directly (i.e. as a portable app).
The executable takes command-line options and can be used to directly set the mode and optionally exit without remaining as an icon in the taskbar notification area, for example:
toggle /TOGGLE /EXIT
toggle /LIGHT /EXIT
toggle /DARK /EXIT