SUBLIME TEXT PACKAGE OF THE DAY: BROWSER REFRESH

Whenever I'm doing front-end work the cycle is usually:

  1. Edit code
  2. View changes in browser
  3. Edit code again
  4. Goto #2.

Switching contexts over to the browser and hitting refresh is a pain. Turns out there is a neat Sublime Text package that will do all this for you!

After installing this plugin you can hit CTRL+SHIFT+R on Windows while using your favorite browser, the last active window will come to the foreground and reload the active tab. If the current file is unsaved, it will be saved before the browser is activated and reloaded.

This works especially nice if you have dual monitors.

Browser Refresh is available in Package Manager.

Upon installation I couldn't find any settings so I manually added the settings to my Sublime preferences:

[
    {
        "keys": ["command+shift+r"], "command": "browser_refresh", "args": {
            "auto_save": true,
            "delay": 0.5,
            "activate_browser": true,
            "browser_name" : "Firefox"
        }
    }
]
Published on Tuesday, March 12 2013     Tags: sublime

COMMENT / SHARE

Comments disabled for this post. Still want to bug me about it? Hit me up on one of the social sites listed to the right.

About

Jim is a Senior Applications Engineer working at Red Hat. He slso likes motorcycles and keeping his quadcopter out of trees.