- To only show the HTML panel use #html on the end of the url, such as http://jsbin.com/#html
- “Use as my template” stores the current code as the default code you see when you open a new JS Bin window.
- Refreshing the window will not lose your changes.
console.log to display debug information. If Firebug is present, then the logging goes there, otherwise it will show in a custom console window.
/js to the url, i.e. http://jsbin.com/ujayi/js
- ctrl + →
- Focus right panel
- ctrl + ←
- Focus left panel
- cmd + 1
- Rendered preview
- cmd + 2
- cmd + 3
- HTML tab
- cmd + 4
- CSS tab
- cmd + /
- Toggle comment on single line
- cmd + alt + .
- Close HTML element
- cmd + s
- Save current Bin
- cmd + shift + s
- Clone current Bin
- Indents selected lines
- shift + tab
- Unindents selected lines
When I change the url to a different JS Bin, it still has the old code
Click the revert button and it will reload the code from the database based on the url you requested.
Can I run a Gist in JS Bin?
Funny you ask! Absolutely you can - just save the gist in Github, and either using the gist to JS Bin bookmarklet, or change the url from http://gist.github.com/271333 to http://jsbin.com/gist/271333
%code% command. Add
How do I re-run or re-render the code
Just click the ‘Preview’ button, and your entire code will re-run.
Can JS Bin respond to Ajax requests?
Yes. See the Ajax debugging video (in the top of the navigation) for a demo. Or, it’s as simple as removing the HTML output, saving the code, then requesting the URL via a new snippet. JS Bin will respond to Ajax requests appropriately.
I’m afraid not, but the application is open source, so if you think you can get it working - please go ahead: http://github.com/remy/jsbin
My question isn’t answered
Feel free to get in touch and if appropriate I’ll add it to the FAQ.