Mastering the Backbeam's builtin code editor

Inside Backbeam we use the awesome Ace Editor in many parts of the control panel. You use it while editing views and controllers and when you edit email templates. We have just upgraded Ace Editor to its latest version including some gorgeous plugins that will improve your experience. The builtin editor now features snippets, autocomplete and it supports Emmet in HTML templates. We have made a screencast to show how you can enjoy these features.

Mastering the Backbeam's built-in code editor from Backbeam on Vimeo.

This is a list of some of the supported snippets (remember that you can alwas use Ctrl+Space in the code editor to show the complete list). Just write the snippet name and hit tabulator

JavaScript snippets

fetch
Performs a query in the database. You can edit the BQL query, its parameters, etc.
near
Queries objects near to a given location
bounding
Queries objects inside a bounding box
empty
Creates an empty backbeam object
read
Reads an object of a given entity with a certain object identifier
login
Snippet to login a user using email+password
twitter
Generates code for signing a user using Twitter
facebook
Generates code for signing a user using Facebook
render
Code to render a template
subscribe
Code to subscribe a given device to a push notification channel
unsubscribe
Code to unsubscribe a given device from a push notification channel
push
Code to send a push notification
rt
Snippet to send a real-time event

HTML snippets

doctype
Outputs the HTML5 doctype
form, input,...
Many HTML tags have a snippets with default values for many attributes
if
Snippet to create an if tag
for
Snippet to create a for loop
out
Snippet to render a value or expression
block
Snippet to create a block tag
set
Snippet to create a set tag
include
Snippet to create an include tag
extends
Snippet to create an extends tag

The Emmet plugin is triggered using the Ctrl+Alt+e keyboard combination.

Finally, you can also take a look at all the available keyboard shortcuts of the builtin editor.