Live Server Lite - Auto Reload & Static Server
Live Server VS Code extension - Launch a local development server with live reload functionality for static & dynamic content. Perfect for HTML, CSS, JavaScript development with auto refresh, HTTPS support, and cross-device testing.
🚀 Most Popular Features: Auto reload on file changes, HTTPS development server, Brave browser support, performance monitoring, enhanced error handling
⚡ Perfect for: Frontend development, static sites, React/Vue/Angular SPAs, API testing, and web app prototyping with intelligent notifications
🔒 Production Ready: v1.2.0 stable release with complete HTTPS support, SSL certificate management, performance optimization, and professional-grade architecture.
🖥️ Wide Compatibility: Works with VS Code 1.74.0+ and Cursor IDE - perfect for any development environment!
🆕 What's New in v1.2.0: QR code for mobile access, in-editor preview panel, copy server URL, HTTP request logger, SPA mode for React/Vue/Angular client-side routing, and proxy support for API forwarding.
🎬 Marketplace Demo & Screenshots
🚀 One-Click Live Server Launch
Right-click any HTML file → "Open with Live Server" → Instant live preview with auto-reload
📁 my-project/
├── 📄 index.html ← Right-click here!
├── 🎨 styles.css ← Auto-reloads when you save
└── ⚡ script.js ← Live updates in browser
🎯 What Users Love Most
| Feature | Why It's Amazing |
|---|---|
| 🎯 One-Click Setup | Right-click HTML file → "Open with Live Server" → Done! |
| ⚡ Instant Reload | Save any file → Browser refreshes automatically |
| 🔒 HTTPS Ready | Test PWAs, service workers, secure contexts |
| 📱 QR Code Access | Scan QR code to instantly open on your mobile device |
| 🖥️ In-Editor Preview | Side-by-side preview panel right inside VS Code |
| 🔀 SPA Mode | React/Vue/Angular client-side routing support (index.html fallback) |
| 🔁 Proxy Support | Forward /api calls to your backend server seamlessly |
| 📊 Request Logger | Live HTTP request log with method, status, and response time |
| 📋 Copy URL | One-click copy of the server URL to clipboard |
| 🌐 Multi-Browser | Choose Chrome, Firefox, Safari, Edge, Brave automatically |
| 🦁 Brave Support | Full Brave browser integration with auto-detection |
| ⚙️ Zero Config | Works out-of-the-box with intelligent defaults |
| 📊 Performance Monitor | Real-time memory usage and optimization suggestions |
| 🛠️ Smart Error Handling | Actionable solutions and automatic retry mechanisms |
📸 See It In Action
Common Search Terms This Extension Handles:
- "live server vscode" ✅
- "auto reload html" ✅
- "localhost development server" ✅
- "https local server" ✅
- "live preview vscode" ✅
- "browser sync vscode" ✅
- "static server extension" ✅
- "livereload extension" ✅
📑 Table of Contents
- ✨ Key Features
- 📦 Installation
- 🚀 Usage
- 🆕 Enhanced Commands & Features
- 🦁 Brave Browser Support
- 📊 Performance Monitoring
- 🛠️ Enhanced Error Management
- 👋 Welcome Experience
- 🛠️ Architecture & Technical Details
- 📂 Supported File Types
- ⚙️ Configuration & Advanced Usage
- 🔧 FAQ & Troubleshooting
- 🧪 Testing & Development
- 🤝 Contributing
- 📝 Changelog
- 📄 License
✨ Key Features
🚀 Core Functionality
- Quick Start: Launch a local development server with one command
- Auto-reload: Automatically refreshes your browser when files change
- WebSocket Live Reload: Fast and reliable real-time page refresh
- Smart File Opening: Opens specific HTML files, not just
index.html - Network Access: Access your site from other devices on the same network
- 🆕 HTTPS Support: Secure development server with auto-generated SSL certificates
🎯 User Experience
- Right-click Support: Open any HTML file directly with Live Server Lite
- Status Bar Integration: Start/stop server with visual feedback and tooltips
- ✅ Fixed Notifications: Clean notification buttons without display bugs ($(check) removed)
- ✅ Fixed URL Opening: URLs now open only once when requested (duplicate opening fixed)
- 🦁 Brave Browser Support: Full integration with Brave browser auto-detection and launching
- 🆕 Smart Notifications: Desktop notifications with actionable quick actions for server events
- 🆕 Browser Selection: Choose specific browser or use system default with one command
- 🆕 Security Warnings: Clear guidance for HTTPS certificate warnings
- 📊 Performance Dashboard: Real-time monitoring and optimization recommendations
- 🛠️ Enhanced Error Handling: Actionable solutions with automatic retry mechanisms
- 👋 Welcome Experience: Guided onboarding for first-time users with quick start tutorials
- Cross-platform: Works seamlessly on Windows, macOS, and Linux
- Multiple Workspace Support: Handle complex project structures
⚡️ Technical Excellence
- Modular Architecture: Cleanly separated concerns across dedicated modules
- TypeScript Integration: 25+ comprehensive interfaces for type safety
- Extensive Testing: 206+ test cases with 100% success rate on critical features (v1.2.0 validation complete)
- ✅ Bug-Free Experience: Fixed notification display and URL opening issues
- 🆕 Performance Optimized: Memory monitoring, batched file events, native watchers, and large project optimizations
- 🆕 Smart File Watching: Auto-excludes node_modules, build folders, with configurable patterns
- 🆕 Certificate Management: Proper SSL certificate generation with node-forge library (fully stable)
- 🆕 Intelligent Error Recovery: Automatic retry mechanisms with user-friendly solutions
- 🆕 SPA & Proxy Support: Built-in SPA fallback and HTTP proxy middleware for modern app development
- Modern Development: Built with Express.js, Chokidar, WebSocket APIs, and robust HTTPS support
🏆 Why Choose Live Server Lite?
| Live Server Lite v1.2.0 | vs. Alternatives |
|---|---|
| ✅ Bug-Free Experience - Fixed notification and URL opening issues | ❌ Extensions with known bugs and poor user experience |
| ✅ QR Code & Mobile Access - Instant QR code for phone/tablet testing | ❌ No mobile sharing or QR code support |
| ✅ In-Editor Preview - Side-by-side WebView panel inside VS Code | ❌ Always opens external browser window |
| ✅ SPA Mode - index.html fallback for React/Vue/Angular routing | ❌ No client-side routing support |
| ✅ Proxy Support - Forward /api paths to backend server | ❌ No proxy, requires manual CORS workarounds |
| ✅ Request Logger - Live HTTP request log with status and timing | ❌ No visibility into server traffic |
| ✅ Brave Browser Support - Full integration with modern browsers | ❌ Limited browser support or outdated detection |
| ✅ Performance Monitoring - Real-time analytics and optimization | ❌ No performance insights or optimization guidance |
| ✅ Smart Error Handling - Actionable solutions with auto-recovery | ❌ Basic error messages without helpful guidance |
| ✅ Lightweight & Fast - Minimal resource usage with monitoring | ❌ Heavy extensions that slow down VS Code |
| ✅ Modern Architecture - TypeScript, modular design, 206+ tests | ❌ Legacy codebases with technical debt |
| ✅ Active Development - Regular updates, bug fixes, and new features | ❌ Abandoned or rarely updated projects |
📦 Installation
From Extensions Marketplace (Recommended)
For VS Code:
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X/Cmd+Shift+X) - Search for "Live Server - Auto Reload & Static Server"
- Click Install
For Cursor IDE:
- Open Cursor
- Go to Extensions (
Ctrl+Shift+X/Cmd+Shift+X) - Search for "Live Server - Auto Reload & Static Server"
- Click Install and reload if prompted
From VSIX File (Universal)
- Download the latest
.vsixfile from the releases (current: v1.0.3) - In VS Code/Cursor, press
Ctrl+Shift+P/Cmd+Shift+P - Type "Extensions: Install from VSIX..."
- Select the downloaded
.vsixfile
🎯 Cursor Users: See the Cursor Compatibility Guide for detailed setup instructions and AI-powered development tips!
⚡ Quick Start
Get up and running in 30 seconds:
- Install the extension from VS Code Marketplace
- Open your HTML project folder in VS Code
- Right-click any
.htmlfile → "Open with Live Server Lite" - Your browser opens automatically with live reload enabled! 🎉
That's it! Any changes to your HTML, CSS, or JS files will instantly refresh your browser.
💡 Pro Tip: Use
Ctrl+Shift+P→ "Live Server Lite: Select Browser" to choose your preferred browser before starting!
📸 Screenshots & Demo
Live Server in Action
| Feature | Preview |
|---|---|
| Status Bar Integration | [Screenshot placeholder - Status bar with Go Live button] |
| Right-click Context Menu | [Screenshot placeholder - Context menu with Open with Live Server] |
| Browser Selection | [Screenshot placeholder - Browser selection quick pick] |
| Smart Notifications | [Screenshot placeholder - Notification with quick actions] |
🎬 Demo GIFs: Coming soon - See Live Server Lite in action with real-time browser refresh!
🚀 Usage
Start the Server
-
Method 1: Right-click HTML File
Right-click any.htmlfile in the Explorer and choose Open with Live Server Lite. -
Method 2: Status Bar Button
Click the 📡 Go Live button at the bottom of VS Code. -
Method 3: Command Palette
Open the Command Palette (Ctrl+Shift+P/Cmd+Shift+P), type
Live Server Lite: Start Server, and press Enter.
Your project will open in your default browser on http://localhost:5500 (or the next available port).
🌍 Network Access
The server automatically binds to all network interfaces (0.0.0.0), making it accessible from other devices on your network. When you start the server, you'll see both URLs:
- Local:
http://localhost:5500- Access from your computer - Network:
http://192.168.x.x:5500- Access from other devices (phones, tablets, etc.)
You can click "Copy Network URL" to easily share the network address with other devices on your network.
Stop the Server
- Click ⏹️ Stop Live Server in the status bar, or
- Use the Command Palette: Live Server Lite: Stop Server.
🔒 HTTPS Development Server
Live Server Lite provides enterprise-grade HTTPS support for secure local development, essential for modern web development including PWAs, service workers, Web APIs, and secure context testing.
🚀 Quick Start with HTTPS
Method 1: Start HTTPS Server Directly
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run "Live Server Lite: Start HTTPS Server"
- Extension automatically generates SSL certificates using node-forge
- Your site opens at
https://localhost:3443🔒 - Accept browser security warning (expected for self-signed certificates)
Method 2: Toggle HTTPS Mode
- Run "Live Server Lite: Toggle HTTPS/HTTP"
- Select "🛡️ HTTPS (Secure)" from the dropdown
- Start the server normally - it will use HTTPS protocol
Method 3: Enable HTTPS in Settings
{
"liveServerLite.https.enabled": true,
"liveServerLite.https.port": 3443,
"liveServerLite.https.autoGenerateCert": true
}
🛡️ Certificate Management
Automatic Certificate Generation
- Live Server Lite automatically creates self-signed certificates
- Perfect for development and testing secure contexts
- No manual setup required - works out of the box!
Custom Certificates
{
"liveServerLite.https.certPath": "/path/to/your/cert.pem",
"liveServerLite.https.keyPath": "/path/to/your/key.pem"
}
Generate New Certificates
- Command: "Live Server Lite: Generate SSL Certificate"
- Specify custom domain (default: localhost)
- View certificate location and update settings
⚙️ HTTPS Configuration
Add these settings to your settings.json for HTTPS customization:
{
// Enable HTTPS by default
"liveServerLite.https.enabled": true,
// HTTPS-specific settings
"liveServerLite.https.port": 3443,
"liveServerLite.https.domain": "localhost",
"liveServerLite.https.autoGenerateCert": true,
"liveServerLite.https.warnOnSelfSigned": true,
"liveServerLite.https.certPath": "", // Leave empty for auto-generation
"liveServerLite.https.keyPath": "" // Leave empty for auto-generation
}
🔧 Handling Browser Security Warnings
When you access https://localhost:3443, browsers will show security warnings like:
- Chrome/Edge: "Your connection is not private" with
NET::ERR_CERT_AUTHORITY_INVALID - Firefox: "Warning: Potential Security Risk Ahead"
- Safari: "This Connection Is Not Private"
This is completely normal and expected for self-signed certificates in development!
How to Proceed Safely:
-
Chrome/Edge:
- Click "Advanced"
- Click "Proceed to localhost (unsafe)"
- Browser remembers this choice for the session
-
Firefox:
- Click "Advanced"
- Click "Accept the Risk and Continue"
-
Safari:
- Click "Show Details"
- Click "Visit this website"
- Confirm "Visit Website"
Pro Tips:
- ✅ These warnings are safe to ignore for
localhostdevelopment - ✅ The connection is actually encrypted between browser and server
- ✅ Only the certificate authority is not recognized (self-signed)
- ✅ Your data remains protected during development
For Production: Use certificates from trusted Certificate Authorities (Let's Encrypt, etc.)
Progressive Web Apps (PWAs)
{
"liveServerLite.https.enabled": true,
"liveServerLite.https.domain": "localhost"
}
Perfect for testing service workers, push notifications, and offline functionality.
API Development & Testing
{
"liveServerLite.https.enabled": true,
"liveServerLite.https.port": 3443,
"liveServerLite.cors": true
}
Test secure API endpoints and cross-origin requests.
Custom Domain Testing
{
"liveServerLite.https.enabled": true,
"liveServerLite.https.domain": "myapp.localhost",
"liveServerLite.https.port": 443
}
Test with custom domains (requires hosts file modification).
🚨 Security Warnings & Browser Setup
Expected Browser Warnings When using self-signed certificates, browsers will show security warnings. This is normal for development!
Chrome/Edge: Click "Advanced" → "Proceed to localhost (unsafe)"
Firefox: Click "Advanced" → "Accept the Risk and Continue"
Safari: Click "Show Details" → "Visit this website"
Disable Warnings (Development Only)
- Chrome: Launch with
--ignore-certificate-errors-spki-list --ignore-certificate-errors --ignore-ssl-errors-spki-list --ignore-ssl-errors - Add to VS Code settings:
{
"liveServerLite.browserArgs": [
"--ignore-certificate-errors",
"--ignore-ssl-errors"
]
}
🔍 HTTPS Troubleshooting
Issue: "Certificate not trusted"
- Solution: This is expected for self-signed certificates
- Action: Click through browser warning or use custom certificates
Issue: "HTTPS server failed to start"
- Solution: Check port availability and certificate paths
- Action: Try different port or regenerate certificates
Issue: "Mixed content warnings"
- Solution: Ensure all resources (CSS, JS, images) use HTTPS URLs
- Action: Use relative URLs or configure your build process
Issue: "Service worker not registering"
- Solution: Service workers require HTTPS or localhost
- Action: Use HTTPS server instead of HTTP for PWA development
🛠️ Advanced HTTPS Setup
Creating Trusted Local Certificates with mkcert
For a seamless development experience without browser warnings:
-
Install mkcert:
# macOS (Homebrew) brew install mkcert # Windows (Chocolatey) choco install mkcert # Windows (Scoop) scoop bucket add extras scoop install mkcert # Linux (Ubuntu/Debian) sudo apt install mkcert -
Setup local Certificate Authority:
# Install local CA (one-time setup) mkcert -install # This creates a local CA trusted by your browser -
Generate trusted certificates:
# Navigate to your project directory cd /path/to/your/project # Generate certificates for localhost mkcert localhost 127.0.0.1 ::1 # This creates: # - localhost+2.pem (certificate) # - localhost+2-key.pem (private key) -
Configure Live Server Lite:
{ "liveServerLite.https.enabled": true, "liveServerLite.https.certPath": "./localhost+2.pem", "liveServerLite.https.keyPath": "./localhost+2-key.pem", "liveServerLite.https.autoGenerateCert": false } -
Start server: No more browser warnings! 🎉
Custom Domain Development
Test with custom domains like myapp.localhost:
-
Update hosts file (requires admin/sudo privileges):
# macOS/Linux echo "127.0.0.1 myapp.localhost" | sudo tee -a /etc/hosts # Windows (run as Administrator) echo 127.0.0.1 myapp.localhost >> C:\Windows\System32\drivers\etc\hosts -
Generate domain certificates:
# Generate certificates for custom domains mkcert myapp.localhost "*.myapp.localhost" -
Configure settings:
{ "liveServerLite.https.enabled": true, "liveServerLite.https.domain": "myapp.localhost", "liveServerLite.https.certPath": "./myapp.localhost+1.pem", "liveServerLite.https.keyPath": "./myapp.localhost+1-key.pem" } -
Access your app: Visit
https://myapp.localhost:3443with no warnings!
Alternative: Disable Browser Security (Development Only)
For quick testing without certificate setup:
{
"liveServerLite.browserArgs": [
"--ignore-certificate-errors",
"--ignore-ssl-errors",
"--disable-web-security",
"--allow-running-insecure-content"
]
}
⚠️ Warning: Only use these flags for development. Never use in production!
💡 HTTPS Use Cases & Examples
Progressive Web App (PWA) Development
{
"liveServerLite.https.enabled": true,
"liveServerLite.https.domain": "localhost",
"liveServerLite.https.port": 3443
}
Perfect for testing:
- Service Worker registration and caching
- Push notifications and background sync
- Offline functionality and app manifest
- Secure context APIs (geolocation, camera, etc.)
Modern Web API Testing
{
"liveServerLite.https.enabled": true,
"liveServerLite.https.autoGenerateCert": true,
"liveServerLite.cors": true
}
Required for:
- WebRTC and peer-to-peer connections
- Web Crypto API and secure random generation
- Clipboard API and advanced permissions
- Payment Request API testing
Cross-Origin Development
{
"liveServerLite.https.enabled": true,
"liveServerLite.https.domain": "api.localhost",
"liveServerLite.host": "0.0.0.0",
"liveServerLite.cors": true
}
Useful for:
- Testing
