LiveReload on Sublime Text 3

Jonathan picture Jonathan · Jul 25, 2014 · Viewed 8.9k times · Source

LiveReload seems not to be working on sublime text 3 when I download it from the package control.

I found this link (https://github.com/dz0ny/LiveReload-sublimetext2/tree/devel) on github, but there's no info on how to do it on windows (I'm on W7). Is it possible, and if so, how can I do it?

Thanks!

Answer

kslstn picture kslstn · Feb 10, 2015

After a lot of trial and error I've managed to get LiveReload working on Windows 8 + Sublime Text 3!

  1. Get the files from the devel branch with the link.
  2. Put those files in your Packages directory: C:\Users\[YOUR USER NAME]\AppData\Roaming\Sublime Text 3\Packages
  3. Restart Sublime Text 3
  4. Enable the 'Simple reload' plugin. You have to repeat this step every time you restart Sublime Text. To do this:
    • Open the command palette with Ctrl+Shift+P
    • Type LiveReload
    • When 'enable/disable plugins' is highlighted, hit Enter.

If you have the browser plugin installed, changes to your files should now immediately be shown upon save. You may also decided to insert the JS snippet, which you can do very easily through the command palette!

I've seen comments about Windows Firewall blocking the localhost with LiveReload. I haven't really had this issue, but I disabled the Firewall the first time, just to be sure. When I re-enabled it and restarted LiveReload, Windows Firewall showed a dialog asking me to refuse or allow the plugin to make connections. So now everything works fine even with the firewall up.

It's actually pretty simple.