- Total 51
- Win 26
- OS X 22
- Linux 3
|Oct 20||Oct 19||Oct 18||Oct 17||Oct 16||Oct 15||Oct 14||Oct 13||Oct 12||Oct 11||Oct 10||Oct 9||Oct 8||Oct 7||Oct 6||Oct 5||Oct 4||Oct 3||Oct 2||Oct 1||Sep 30||Sep 29||Sep 28||Sep 27||Sep 26||Sep 25||Sep 24||Sep 23||Sep 22||Sep 21||Sep 20||Sep 19||Sep 18||Sep 17||Sep 16||Sep 15||Sep 14||Sep 13||Sep 12||Sep 11||Sep 10||Sep 9||Sep 8||Sep 7||Sep 6|
A SublimeText 3 Plugin to use Chrome as your REPL.
Because Chrome ain't no text editor. Anything longer than a line is a pain, and so is recalling what you typed earlier.
Via Package Control (recommended! 👍👍👍)
Alternatively, clone this repo into your
Packages directory. e.g.
~/Library/Application Support/Sublime Text 3/Packages/ on macOS. If you do this you will need to open the Command Palette and run
Package Control: Satisfy Dependencies.
Chrome needs to be started with a special flag 🏳️ (
Don't worry, commands are provided to do this for you 😅.
- If you haven't opened Chrome, use the
Chrome REPL: Start Chromecommand.
- If Chrome is already running, use
Chrome REPL: Restart Chrome with remote debugging*
*this will quit and re-open Chrome, if you want to preserve your tabs, make sure you have set this behaviour in Chrome's settings:
On start-up: Continue where you left off.
- Start/Restart Chrome as above
- Run the
Chrome REPL: Connect to Tabcommand
- Select the tab you want to connect to
- You should see
"Sublime Text connected"in the Chrome Developer Tools console
- If you have nothing selected it will execute the current line
- With code selected it will execute just the selection
Note: Each Sublime tab can be connected to one Chrome tab. The connected tab is displayed in Sublime in the status bar at the bottom of tab.
Clear ConsoleCmd/Ctrl Shift C
Reload PageCmd/Ctrl Shift R
Reload Page (Ignore Cache)Cmd/Ctrl Shift Alt R
- 📁 Path to Chrome (can be Chrome, Canary, or Chromium)
- 👀 Automatically focus on connected Chrome tab (requires
- 🔧 Automatically opening the Developer Tools for every new window
- 🏳️ Additional chrome flags
- ⌨️ Enabling the Command Line API
- 🏠 Custom hostname and port
The project was inspired by SublimeWebInspector, but is far less ambitious, not as opinionated, and thus easier to maintain.
Arthur Carabott - arthurcarabott.com