A fantastic plugin connecting your favorite editor with your favorite web debugger
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap Keymaps for OSX and Linux, fix #4 Jul 22, 2014
Default.sublime-commands working version with evaluateJS live CSS editing #1 Jul 19, 2014
Main.sublime-menu working version with evaluateJS live CSS editing #1 Jul 19, 2014


Fireplay Sublime

ATTENTION: this piece of code is super experimental and can be so radioactive that it could break your Sublime! It's going to be amazing.

The aim is to:

  1. Connect Sublime Text to Firefox Developer tools: live updating of HTML and CSS and reading the console logs directly from Sublime without any external tool, by using the super-powerful RDP (aka Remote Debugging Protocol). This allows us to edit CSS at runtime exactly as if we were using the Web Inspector in Firefox.

  2. Use Sublime Text to deploy apps for FirefoxOS: while the new Firefox WebIDE is awesome, some developers might want to use their favourite editors.

Installing (for the braves, on OS X and Linux)

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
$ git clone https://github.com/mozilla/fireplay-sublime fireplay


Install the plugin by cloning into Sublime's plugin directory (as detailed above), then start Sublime Text.

Developing for Firefox OS

Open a simulator

  1. In Sublime Text, press cmd+shift+r.
  2. If no simulator is open, select Start new Firefox OS simulator instance.

Start a connection

  1. In Sublime Text, press cmd+shift+r.
  2. Select the Firefox OS port and you are connected!

Push an app

  1. Open the folder containing your Firefox OS app as a project in Sublime Text. This has to be the folder that contains the manifest.webapp file.
  2. In Sublime Text, press cmd+shift+r.
  3. A list of open apps will be shown. Select which one you want to deploy.

Push on save and live-reload css:

When you are connected to your device and pushed the app at least once, saving HTML and JS files will trigger a complete app push. Editing CSS files will only reload the CSS.

Developing for Firefox Desktop (experimental)

This method is still experimental:

  1. In Firefox about:config set devtools.debugger.remote-enabled to true
  2. (optional) In Firefox about:config set devtools.debugger.prompt-connection to false
  3. In your Sublime Text's packages folder, edit fireplay.sublime-settings and change
fireplay_firefox: false,


fireplay_firefox: true,
  1. In Firefox, open the Developer toolbar by going to ToolsWeb DeveloperDeveloper toolbar. A command line prompt will open at the bottom of the browser. Focus on it and type listen, then press ENTER.
  2. You should now be able to live edit CSS and HTML from Sublime.

Unfortunately, you have to do that every time you close and reopen the browser as the setting is not remembered between sessions.

Contribute to this project

It's still early times, but you can help by testing this out and reporting issues. Or helping fix existing issues! We're specially interested in getting help for Windows support.

When reporting errors, it is often useful to attach the logs from the Sublime Text console. Go to the View menu and select Show Console if it's not shown yet, then copy and paste the info in the console in the bug description.

Intrigued about where did this come from?

Read INSPIRATIONS.md to satisfy your unnatural curiosity.