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 639
  • Mac 193
  • Linux 205
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 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 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
Windows 5 4 3 6 3 1 4 3 4 6 11 5 6 3 6 4 8 5 9 6 12 6 10 6 8 8 3 5 6 4 7 2 8 3 3 5 3 4 2 7 6 10 1 5 6 7
Mac 0 3 2 3 1 2 0 1 0 2 1 0 4 3 1 2 2 2 10 3 1 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
Linux 4 1 0 4 3 0 1 1 2 0 1 2 1 1 4 1 1 3 5 2 4 5 2 2 2 4 1 3 4 1 1 2 2 1 1 2 2 3 3 1 1 1 0 2 0 1

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.

Live Server Plus Demo


Installation

Via 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 Installation

  1. Download or clone this repository.
  2. In Sublime Text, go to Preferences > Browse Packages….
  3. Move/copy the downloaded folder into the Packages directory.
  4. 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

  1. Launch Sublime and open your web project folder.
  2. Run Live Server Plus: Start from the Command Palette.
  3. 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).