LiveServerPlus
A lightweight development server with live reload capabilities.
Details
Installs
- Total 860
- Win 534
- Mac 159
- Linux 167
May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 5 | 10 | 6 | 8 | 8 | 3 | 5 | 6 | 4 | 7 | 2 | 8 | 3 | 3 | 5 | 3 | 4 | 2 | 7 | 6 | 10 | 1 | 5 | 6 | 7 | 3 | 4 | 2 | 4 | 7 | 5 | 1 | 4 | 6 | 5 | 2 | 3 | 7 | 5 | 2 | 5 | 2 | 7 | 5 | 7 | 9 |
Mac | 0 | 1 | 2 | 2 | 1 | 5 | 0 | 1 | 3 | 2 | 1 | 0 | 6 | 1 | 1 | 0 | 0 | 2 | 1 | 4 | 3 | 0 | 1 | 4 | 1 | 1 | 2 | 0 | 2 | 2 | 0 | 1 | 2 | 3 | 0 | 2 | 2 | 0 | 1 | 3 | 1 | 0 | 1 | 2 | 1 | 1 |
Linux | 3 | 2 | 2 | 2 | 4 | 1 | 3 | 4 | 1 | 1 | 2 | 2 | 1 | 1 | 2 | 2 | 3 | 3 | 1 | 1 | 1 | 0 | 2 | 0 | 1 | 1 | 5 | 1 | 1 | 1 | 1 | 2 | 1 | 0 | 5 | 2 | 5 | 2 | 3 | 3 | 2 | 1 | 3 | 1 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Live Server Plus for Sublime Text
A lightweight development server with WebSocket-based live reload and directory listings—all from within Sublime Text.
Installation
Via Package Control (Recommended)
- Open the Command Palette:
Cmd/Ctrl + Shift + P
- Select “Package Control: Install Package”
- Search for “LiveServerPlus” and install.
Manual Installation
- Download or clone this repository.
- In Sublime Text, go to
Preferences > Browse Packages…
. - Move/copy the downloaded folder into the
Packages
directory. - Ensure the folder name is
LiveServerPlus
.
Usage
First, open a folder or workspace (File » Open Folder) in Sublime Text. Then:
1. Main Menu
- Tools » Live Server Plus:
- Start Server: Starts the live server.
- Stop Server: Stops the server.
- Open Current File: Opens active file in browser.
2. Command Palette
Press Cmd/Ctrl + Shift + P
, then select:
- Live Server Plus: Start
- Live Server Plus: Stop
- Live Server Plus: Open Current File
- Live Server Plus: Settings
Example Workflow
- Launch Sublime and open your web project folder.
- Run Live Server Plus: Start from the Command Palette.
- Edit and save files; browser refreshes automatically.
Features
- Instant Refresh: Automatically refreshes the browser on file changes.
- No External Dependencies: Runs directly in Sublime’s bundled Python environment.
- Friendly Directory View & Smart 404s: Easily navigate your project; get helpful suggestions on missing files.
- Flexible File Watching:
- Sublime Events: Fast, built-in method for most users.
- Built-in Watcher: Poll-based watcher as a fallback (handles external changes).
- Customizable Settings: Adjust port, host, compression, browser, and more.
- Status Bar Integration: Quickly see server status.
Optional Key Bindings
Add keyboard shortcuts via Preferences > Key Bindings
:
[
{ "keys": ["alt+shift+s"], "command": "live_server_start" },
{ "keys": ["alt+shift+o"], "command": "open_current_file_live_server" },
{ "keys": ["alt+shift+x"], "command": "live_server_stop" }
]
Settings (Customizing Live Server)
Open via Preferences > Package Settings > Live Server Plus > Settings
.
Common settings explained:
- host
: Server address (e.g., “localhost”).
- port
: Server port (0
for automatic).
- open_browser_on_start
: Auto-open browser.
- browser
: Specific browser (e.g., “chrome”).
- enable_compression
: Gzip compression (faster loading).
- allowed_file_types
: Extensions served inline.
- live_reload
: Real-time browser update options:
- enabled
: Toggle reload feature.
- css_injection
: Inject CSS without full reload.
- delay
: Wait time before reloading.
Note: Restart the server after changing settings.
Requirements
- Sublime Text 4
- Browser with WebSocket support (Chrome, Firefox, Edge, Safari)
Known Limitations
- No built-in HTTPS support. Use reverse proxy if HTTPS is required.
- File watcher limits directories (50 max). Enable Sublime Events for larger projects.
Contributing
Contributions welcome! Please open issues or PRs.
Vendored Dependencies
To ensure compatibility and avoid external dependency issues, this plugin includes the following vendored libraries:
- Watchdog (v6.0.0) for file system event monitoring.
These libraries are included in the liveserverplus_lib/vendor directory and are loaded dynamically by the plugin.
Support
Report bugs/issues on GitHub Issues.
License
MIT License (LICENSE).