ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Live​Server​Plus

by ifrederico ST4

A lightweight development server with live reload capabilities.

Details

Installs

  • Total 1K
  • Win 786
  • Mac 237
  • Linux 257
Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26
Windows 4 3 2 4 5 5 3 9 7 11 6 3 2 6 6 8 2 6 4 2 4 8 4 4 2 5 4 5 7 9 6 7 2 7 4 3 6 3 1 4 3 4 6 11 5 6
Mac 1 0 3 1 0 1 1 2 0 6 1 1 0 1 2 0 2 3 2 5 2 2 5 0 0 0 0 0 0 3 1 1 5 0 3 2 3 1 2 0 1 0 2 1 0 4
Linux 1 2 2 2 0 1 1 1 0 1 1 2 2 5 5 3 1 1 1 2 2 5 2 1 0 1 2 1 2 0 0 1 2 5 1 0 4 3 0 1 1 2 0 1 2 1

Readme

Source
raw.​githubusercontent.​com

Live Server Plus for Sublime Text

A lightweight development server with WebSocket‑based live reload.

Live Server Plus Demo


Installation

Package Control (recommended)

  1. Open the Command Palette: Cmd/Ctrl + Shift + P
  2. Select Package Control: Install Package
  3. Search for “LiveServerPlus” and install.

Manual

  1. Download or clone this repository.
  2. In Sublime Text, choose Preferences ▸ Browse Packages…
  3. Copy the folder into the Packages directory and name it LiveServerPlus.

Usage

Open a file, folder or workspace (File ▸ Open Folder) first.

Main menu

Tools ▸ Live Server Plus:

Action Description
Start Server Starts the server (multi‑folder picker).
Stop Server Stops the server.
Open Current File Opens the active file through the server.
Show Mobile QR Code Displays a QR linking devices on the LAN to the dev URL.
Live Reload Toggles live‑reload on or off.
Change Port… Enter any port or 0 for “find a free one”.
Settings… Opens the user settings file.

Command Palette

Cmd/Ctrl + Shift + P → type:

  • Live Server Plus: Start Server
  • Live Server Plus: Stop Server
  • Live Server Plus: Open Current File in Browser
  • Live Server Plus: Show Mobile QR Code
  • Live Server Plus: Toggle Live Reload
  • Live Server Plus: Change Port…
  • Live Server Plus: Settings

Example workflow

  1. Open your project folder.
  2. Run Live Server Plus: Start Server.
  3. Edit and save—your browser refreshes automatically.

Features

  • Instant reload on file changes; optional CSS‑only injection.
  • Mobile preview: scan a QR code to open the site on any device.
  • Port selection: choose a port at startup or set "port": 0 for a free one.
  • Two watcher modes: Sublime on‑save events (fast) or Watchdog polling (external changes).
  • Runs in Sublime’s bundled Python—no external runtime required.

Optional 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 quick reference

// LiveServerPlus.sublime-settings (user)
{
    "host": "localhost",
    "port": 0,                       // 0 = choose a free port
    "open_browser_on_start": true,
    "browser": "",                   // "chrome", "firefox", "edge", ...
    "status_bar_enabled": true,

    "live_reload": {
        "enabled": false,
        "css_injection": true,
        "delay": 500,                // ms debounce (0 = instant)
        "ignore_exts": [".log", ".map"]
    },

    "enable_compression": true,
    "cors_enabled": false,
    "max_file_size": 100,            // MB

    "connections": {
        "max_concurrent": 100,
        "timeout": 30,
        "max_threads": 10
    },

    "allowed_file_types": [".html", ".css", ".js", "..."],
    "ignore_dirs": ["node_modules", ".git", "__pycache__"]
}

Restart the server after changing settings.


Requirements

  • Sublime Text 4 (Build ≥ 4152)
  • Browser with WebSocket support (Chrome, Firefox, Edge, Safari)

Known limitations

  • No built‑in HTTPS.
  • Watchdog mode watches up to 50 directories; switch to Sublime‑event mode for very large projects.

Contributing

Contributions welcome! Issues and pull requests are welcome.


Vendored dependencies

  • Watchdog 6.0.0 – filesystem events
  • PyQRCode and pypng – QR generation

All vendored under liveserverplus_lib/vendor/.


Support

Report bugs/issues on GitHub: https://github.com/ifrederico/sublime-liveserverplus/issues


License

MIT