A template editor based on CodeMirror is included.
It comes with a set of add-ons, including syntax highlight, lint/hinting, and Emmet abbreviations.
Here is a list of common keyboard shortcuts.
Enter- Insert a newline and auto-indent the new line.
- If something is selected, indent it by one indent unit.
- If nothing is selected, insert a tab character.
- If tab is pressed after an Emmet abbreviation, it is expanded.
Shift-Tab- Auto-indent the current line or selection.
Home- Move to the start of the text on the line, or if we are already there, to the actual start of the line (including whitespace).
Cmd-S(Mac) - Save
Cmd-A(Mac) - Select the whole content of the editor.
Cmd-D(Mac) - Deletes the whole line under the cursor, including newline at the end.
Cmd-Z(Mac) - Undo the last change.
Cmd-Y(Mac) - Redo the last undone change.
Cmd-Home(Mac) - Move the cursor to the start of the document.
Cmd-Down(Mac) - Move the cursor to the end of the document.
Ctrl-A(Mac) - Move the cursor to the start of the line.
Ctrl-E(Mac) - Move the cursor to the end of the line.
Cmd-](Mac) - Indent the current line or selection by one indent unit.
Cmd-[(Mac) - Dedent the current line or selection by one indent unit.
See here for the complete list.