YourServer is a lightweight Visual Studio Code extension that provides an easy way to launch a local development server with live reloading. It is built using live-server and allows you to preview HTML files instantly.
Features
One-click start/stop server from the status bar.
Automatically finds an available port (starting from 5500).
Opens your project in the browser automatically.
Supports live reloading when files change.
Works from both the Explorer and Editor context menus.
Installation
Open VS Code.
Go to Extensions (Ctrl+Shift+X or Cmd+Shift+X on macOS).
Search for YourServer.
Click Install.
Alternatively, install via the command line:
code --install-extension NSTechBytes.yourserver
Preview
Usage
Start the Server
Click on the Start Server button in the status bar.
Or right-click in the Explorer or Editor and select Start YourServer.
Stop the Server
Click on the Stop Server button in the status bar.
Or right-click in the Explorer or Editor and select Stop YourServer.
Commands
Command
Description
yourserver.start
Starts the local server
yourserver.stop
Stops the server
Configuration
YourServer automatically detects an available port starting from 5500. You can modify the default behavior in future updates by adding settings support.