Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>LiveReload HTTPNew to Visual Studio Code? Get it now.
LiveReload HTTP

LiveReload HTTP

Herisson

|
4 installs
| (0) | Free
Serve files with live-reload and automatic port forwarding
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LiveReload HTTP 🔄

A lightweight VS Code extension that serves your workspace files over HTTP with automatic live-reload. Built for Remote-SSH workflows — no browser extensions needed.

Version License Python


✨ Features

🚀 One-click serve Right-click any file or folder → Open using LiveReload HTTP
♻️ Live reload Auto-refreshes when HTML, CSS, JS, or images change on disk
🔌 Remote-SSH ready Automatic port forwarding — local browser, remote files
📂 File & folder support Serve a single file or browse a directory listing
🎲 Random or fixed port Pick a port or let it choose one automatically
📊 Status bar Shows the active port with server stats — click to start/stop
⚡ Zero config Works out of the box — just install and go

🚀 Quick Start

  1. Install the extension
  2. Open a workspace over Remote-SSH (or locally)
  3. The server starts automatically on activation
  4. Right-click a file or folder → Open using LiveReload HTTP
  5. Edit your files — the browser refreshes automatically

📖 How It Works

✏️ Save file → 🐍 Python HTTP Server → 🌐 Browser reloads

  1. Extension spawns a threaded Python HTTP server in your workspace
  2. HTML responses are injected with a tiny polling script
  3. The script checks file modification times every second
  4. When a change is detected, the browser reloads after a configurable delay
  5. Linked resources (CSS, JS, images) are also tracked — edit a stylesheet and the page refreshes

🎮 Commands

Open the Command Palette (Ctrl+Shift+P):

Command Description
LiveReload HTTP: Start Server Start the HTTP server
LiveReload HTTP: Stop Server Stop the server and remove port forwarding
Open using LiveReload HTTP Open the selected file/folder in the browser

💡 You can also click the HTTP status bar item to toggle the server.


⚙️ Settings

Setting Default Description
livereloadHttp.port 0 Server port (0 = random available port)
livereloadHttp.showInfoBar true Show an overlay bar with last update time
livereloadHttp.debug false Verbose logging in the Output channel
livereloadHttp.reloadDelay 0 Delay (ms) between file change and reload (0–10000)
livereloadHttp.directoryStyle styled Directory listing style: styled (dark theme) or default (Python built-in)

📦 Installation

  1. Download the .vsix file
  2. Ctrl+Shift+P → Extensions: Install from VSIX...
  3. Select the .vsix file
  4. Reload VS Code

📋 Requirements

  • Python 3 installed on the machine (remote or local)

⚠️ Limitations

  • Auto-reload only works for HTML files. The reload script is injected into HTML responses. Plain text files (.txt, .json, etc.) are served but won't auto-refresh — you'll need to manually reload the browser.

❓ Troubleshooting

Problem Solution
Server won't start Make sure python3 is installed and available in your PATH
Browser doesn't reload Check that the file is inside the workspace folder
Port already in use Set livereloadHttp.port to 0 (random) or pick a different port
No port forwarding Ensure you're connected via Remote-SSH — forwarding is automatic
Changes not detected Linked resources (CSS/JS) are tracked too — check the Output channel (LiveReload HTTP) for logs
Extension not activating Run LiveReload HTTP: Start Server from the Command Palette

💡 Enable livereloadHttp.debug for verbose logging in the Output channel.


📄 License

MIT — see LICENSE.txt for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft