Template editor shortcuts
Become an L&L power-user with these shortcuts
A template editor based on CodeMirror is included.
It comes with a set of add-ons, including syntax highlight, lint/hinting, and Emmet abbreviations.
Keyboard shortcuts
Here is a list of common keyboard shortcuts.
-
Enter - Insert a new line and auto-indent the new line.
-
Tab - Indent/expand Emmet abbreviation
- 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).
- Ctrl + S (PC), ⌘ + S (Mac) - Save
- Ctrl + A (PC), ⌘ + A (Mac) - Select the whole content of the editor.
- Ctrl + D (PC), ⌘ + D (Mac) - Deletes the whole line under the cursor, including newline at the end.
- Ctrl + Z (PC), ⌘ + Z (Mac) - Undo the last change.
- Ctrl + Y (PC), ⌘ + Y (Mac) - Redo the last undone change.
- Ctrl + Home (PC), ⌘ + Up (Mac), ⌘ + Home (Mac) - Move the cursor to the start of the document.
- Ctrl + End (PC), ⌘ + End (Mac), ⌘ + Down (Mac) - Move the cursor to the end of the document.
- Alt + Left (PC), Ctrl + A (Mac) - Move the cursor to the start of the line.
- Alt + Right (PC), Ctrl + E (Mac) - Move the cursor to the end of the line.
- Ctrl + ] (PC), ⌘ + ] (Mac) - Indent the current line or selection by one indent unit.
- Ctrl + [ (PC), ⌘ + [ (Mac) - Dedent the current line or selection by one indent unit.
See here for the complete list.