Display ManagerKeep your computer display awake from Visual Studio Code. Display Manager adds a simple status bar control that lets you turn keep-awake mode on or off without leaving the editor. When enabled, the extension uses operating system level commands to prevent the display from going idle. The enabled state is application-wide: changing it in one VS Code window updates all other open windows and applies to windows opened later. Features
How To Use
You can also run these commands from the Command Palette:
Mouse movement (1.0.4 behavior)On macOS and Windows, Awake now also moves the mouse slightly every two minutes, with Display Manager: Mouse Jiggle enabled by default. Disable this setting if you only want display/system sleep prevention. Changes apply immediately. Mouse movement stops when Awake is disabled, its duration expires, the power helper exits, or the extension shuts down normally. Mouse movement can reset the system idle timer and prevent the configured idle threshold from being reached, so automatic tab rotation may not start while it is enabled. Third-party applications may classify activity differently; this extension cannot guarantee their presence or idle status. On macOS the helper requires Swift and Accessibility permission. If movement fails, inspect Output → Display Awake for the error and permission guidance, then toggle Awake off and on after resolving it. On Windows, helper errors are also reported there; display sleep prevention remains active if only the mouse helper fails. SettingsClick the gear beside Awake or run Display Awake: Open Settings for the
settings screen. Choose a duration, enter custom time as The screen shows whether Awake is active and its end time. Invalid custom times and tab intervals appear as inline errors. Unsaved edits stay in the form when another window changes settings. Internal timer values are omitted from this screen; the built-in VS Code settings place them in a separate internal category. Awake time limitClick the clock / Unlimited control next to Awake, or run Display Manager:
Set Awake Duration from the Command Palette. Choose 30 minutes,
1 hour, 2 hours, 3 hours, Unlimited, or a custom duration in hours.minutes format.
For example, The clock shows minutes remaining. At expiry, keep-awake and automatic tab switching stop across VS Code windows. You can still click Awake to stop early. The deadline is preserved across window reloads and newly opened windows, so reloading does not restart the countdown. If VS Code is closed at expiry, Awake stays off when reopened. Timers also run while VS Code is minimized; if the OS suspends VS Code, expiry is handled when it resumes. Duration Minutes sets the default for the next enable (initially Unlimited;
Automatic tab switchingOpen VS Code Settings and search for Use Tab Switch Min Minutes and Tab Switch Max Minutes to control the random switch interval. Their defaults are 2 and 3 minutes. The minimum must be lower than the maximum; an invalid range falls back to the defaults. The Enabled setting controls Display Manager across all VS Code windows. The status bar button and enable/disable commands update this setting automatically. Status Indicator
Platform Behavior
Limitations
Platform With ZscalerDisplay Awake does not make network requests while it is running. If Zscaler or an
enterprise proxy prevents installation from the Visual Studio Marketplace, install
the packaged
Do not disable certificate validation to install the extension. If the keep-awake
process is blocked after installation, ask your administrator to allow the built-in
Windows PowerShell executable and review the NotesThis extension is designed for legitimate keep-awake use cases such as presentations, dashboards, monitoring, and long-running local work sessions. |