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 2K
  • Win 1K
  • Mac 294
  • Linux 326
Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13
Windows 4 4 6 8 2 7 5 12 5 8 7 5 4 7 9 11 5 3 2 6 4 28 9 5 6 3 8 0 1 7 8 6 5 11 5 6 1 8 7 5 2 5 4 5 7 8
Mac 0 1 3 2 0 3 3 0 3 0 3 1 1 1 2 0 0 0 2 1 0 1 1 1 1 1 1 0 3 4 1 0 1 3 3 0 2 1 0 2 1 1 3 1 1 1
Linux 0 0 1 1 3 0 3 4 2 0 1 1 2 2 0 0 3 1 2 3 4 0 1 2 2 1 0 1 1 2 4 0 1 4 2 2 1 1 1 2 2 0 2 1 1 2

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