ConfigsJul 20, 2026·3 min read

VS Code Live Server — Local Dev Server with Live Reload

A VS Code extension that launches a local development server with automatic browser reload on file changes, essential for rapid HTML, CSS, and JavaScript prototyping.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
VS Code Live Server
Direct install command
npx -y tokrepo@latest install e620e399-8418-11f1-9bc6-00163e2b0d79 --target codex

Run after dry-run confirms the install plan.

Introduction

Live Server is one of the most popular VS Code extensions, providing a one-click local development server with automatic browser refresh whenever you save a file. It eliminates the need to manually reload pages during frontend development.

What VS Code Live Server Does

  • Launch a local HTTP server for static and dynamic pages with one click
  • Automatically reload the browser on HTML, CSS, or JavaScript changes
  • Serve files with proper MIME types and directory listings
  • Support custom server ports and root directories
  • Enable HTTPS for local development with self-signed certificates

Architecture Overview

Live Server runs a lightweight Node.js HTTP server inside the VS Code extension host. It uses WebSocket-based live reload injection to notify connected browsers of file changes detected by the VS Code file watcher. The server handles static file serving, directory browsing, and optional proxy configuration for API backends.

Self-Hosting & Configuration

  • Install from the VS Code marketplace; no external dependencies needed
  • Configure the default port (default 5500) in VS Code settings
  • Set a custom browser or let it use your system default
  • Define file exclusions to avoid reloads on non-relevant changes
  • Enable HTTPS mode for testing secure contexts locally

Key Features

  • Single-click launch from the VS Code status bar or right-click context menu
  • Sub-second reload latency using WebSocket-based browser notification
  • Multi-root workspace support serves different folders on different ports
  • Proxy support forwards API requests to a backend server during development
  • Configurable auto-open behavior and browser selection

Comparison with Similar Tools

  • Vite dev server — requires a build tool setup; Live Server works with plain HTML files instantly
  • Browser-sync — standalone CLI tool; Live Server is fully integrated into VS Code
  • http-server (npm) — no live reload; Live Server auto-refreshes on every save
  • Parcel — full bundler with dev server; Live Server is lightweight and zero-config
  • Five Server — fork of Live Server with PHP support; Live Server focuses on static files

FAQ

Q: Does it work with frameworks like React or Vue? A: Those frameworks have their own dev servers. Live Server is best for static HTML/CSS/JS files, multi-page sites, and quick prototyping.

Q: Can I use it for backend development? A: It serves static files only, but you can proxy API requests to a backend server running separately.

Q: Does live reload work with CSS changes? A: Yes. CSS changes trigger a hot-reload that updates styles without a full page refresh.

Q: Can I run multiple instances? A: Yes. Each workspace or folder can run its own server on a different port.

Sources

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets