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

Code Awake

Pritom Purkayasta

|
1 install
| (0) | Free
One shared toggle to keep your computer awake. Let the screen lock; let your work continue.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Awake

Code Awake icon

Keep your computer awake with one click in VS Code.

Marketplace downloads Marketplace rating Marketplace downloads Marketplace rating

Install Code Awake from the VS Code Marketplace

Give your coding agent a task, turn Code Awake On, and step away. Code Awake prevents idle system sleep while VS Code is open, so local work can continue. Your display can still turn off, and you can still lock your screen.

Click. Lock. Walk away.

Find Code Awake at the bottom right of VS Code.

| Status | What it means | | Status | What it means | | --- | --- | | Code Awake: Off | Normal system sleep is allowed. Click to turn Code Awake On. | | Code Awake: On | Idle system sleep is prevented. Click to turn Code Awake Off. |

Prefer the keyboard? Open the Command Palette and run Code Awake: Enable or Code Awake: Disable.

Every new session starts Off. Windows in the same local VS Code edition and profile share one toggle. Close the last participating window and Code Awake releases its sleep request.

Small by design

No settings to tune. No separate Node.js to install. No resident background service or polling loop.

Code Awake uses your operating system’s sleep-prevention API. It never fakes keystrokes or mouse movement, reads your workspace, sends telemetry or network requests, or changes permanent power settings.

Desktop What it uses
macOS Built-in caffeinate
Windows x64 / ARM64 A bundled native helper
Linux systemd-inhibit and logind, with permission to inhibit sleep

Requires VS Code 1.95+ on desktop. With SSH, WSL, Dev Containers or desktop Codespaces, Code Awake acts on your local computer. Browser VS Code is unsupported.

Before you step away

On means an active sleep-prevention backend. Lid closure, forced sleep, critical battery and organization policies can still override it. Windows Modern Standby on battery can limit requests. On Linux, the sleep inhibitor may also block ordinary manual suspend. Keeping a computer awake uses power. Code Awake does not override sleep when you close the lid. For a MacBook, use Apple’s supported external-display setup; see closed-lid use.

If something goes wrong, hover over the toggle for details or run Code Awake: Show Logs.

For current validation status, see verification and release gates. For current validation status, see verification and release gates.


Report an issue · Development · MIT License

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft