This is a simple extension for Visual Studio Code that simulates pressing the F15 key at regular intervals to prevent your computer from going to sleep.
Features
Simulates pressing the F15 key at regular intervals.
Keeps your computer awake when Visual Studio Code is active.
Option to enable Silent Mode to disable notifications.
Customizable time interval between key presses.
Installation
Open Visual Studio Code.
Go to the Extensions view by clicking on the square icon in the sidebar on the left or pressing Ctrl+Shift+X.
Search for "nosleep" and click Install on the extension published by srk113.
Reload Visual Studio Code.
Usage
Once the extension is installed and activated, it will automatically simulate pressing the F15 key at the specified time interval to prevent your computer from going to sleep.
To deactivate the extension and stop the simulation, you can either:
Deactivate the extension in the Extensions view.
Use the command palette (Ctrl+Shift+P) and search for "NoSleep: Deactivate".
To activate the extension and start the simulation, you can:
Use the command palette (Ctrl+Shift+P) and search for "NoSleep: Activate".