Keyboard Shortcuts

You might want to learn those simple key combinations to directly reach for some feature

LiveCanvas Editor Keyboard Shortcuts

Windows/Linux Mac Action
Ctrl-S ⌘-S Save
Ctrl-P ⌘-P Re-draw preview (useful for JS code)
Ctrl-E ⌘-E Open the global HTML & CSS code editor
Ctrl-L ⌘-L Paste lorem ipsum text

 

Code Editor Keyboard Shortcuts

And here are some powerful shortcuts you can use in the Code Editor:

Line Operations

Windows/Linux Mac Action
Ctrl-D ⌘-D Remove line
Alt-⇧-Down ⌘-⌥-Down Copy lines down
Alt-⇧-Up ⌘-⌥-Up Copy lines up
Alt-Down ⌥-Down Move lines down
Alt-Up ⌥-Up Move lines up
Alt-Delete Ctrl-K Remove to line end
Alt-Backspace ⌘-Backspace Remove to linestart
Ctrl-Backspace ⌥-Backspace, Ctrl-⌥-Backspace Remove word left
Ctrl-Delete ⌥-Delete Remove word right
--- Ctrl-O Split line

Selection

Windows/Linux Mac Action
Ctrl-A ⌘-A Select all
⇧-Left ⇧-Left Select left
⇧-Right ⇧-Right Select right
Ctrl-⇧-Left ⌥-⇧-Left Select word left
Ctrl-⇧-Right ⌥-⇧-Right Select word right
⇧-Home ⇧-Home Select line start
⇧-End ⇧-End Select line end
Alt-⇧-Right ⌘-⇧-Right Select to line end
Alt-⇧-Left ⌘-⇧-Left Select to line start
⇧-Up ⇧-Up Select up
⇧-Down ⇧-Down Select down
⇧-PageUp ⇧-PageUp Select page up
⇧-PageDown ⇧-PageDown Select page down
Ctrl-⇧-Home ⌘-⇧-Up Select to start
Ctrl-⇧-End ⌘-⇧-Down Select to end
Ctrl-⇧-D ⌘-⇧-D Duplicate selection
Ctrl-⇧-P --- Select to matching bracket

Multicursor

Windows/Linux Mac Action
Ctrl-Alt-Up Ctrl-⌥-Up Add multi-cursor above
Ctrl-Alt-Down Ctrl-⌥-Down Add multi-cursor below
Ctrl-Alt-Right Ctrl-⌥-Right Add next occurrence to multi-selection
Ctrl-Alt-Left Ctrl-⌥-Left Add previous occurrence to multi-selection
Ctrl-Alt-⇧-Up Ctrl-⌥-⇧-Up Move multicursor from current line to the line above
Ctrl-Alt-⇧-Down Ctrl-⌥-⇧-Down Move multicursor from current line to the line below
Ctrl-Alt-⇧-Right Ctrl-⌥-⇧-Right Remove current occurrence from multi-selection and move to next
Ctrl-Alt-⇧-Left Ctrl-⌥-⇧-Left Remove current occurrence from multi-selection and move to previous
Ctrl-⇧-L Ctrl-⇧-L Select all from multi-selection

Go to

Windows/Linux Mac Action
Left Left, Ctrl-B Go to left
Right Right, Ctrl-F Go to right
Ctrl-Left ⌥-Left Go to word left
Ctrl-Right ⌥-Right Go to word right
Up Up, Ctrl-P Go line up
Down Down, Ctrl-N Go line down
Alt-Left, Home ⌘-Left, Home, Ctrl-A Go to line start
Alt-Right, End ⌘-Right, End, Ctrl-E Go to line end
PageUp ⌥-PageUp Go to page up
PageDown ⌥-PageDown, Ctrl-V Go to page down
Ctrl-Home ⌘-Home, ⌘-Up Go to start
Ctrl-End ⌘-End, ⌘-Down Go to end
Ctrl-L ⌘-L Go to line
Ctrl-Down ⌘-Down Scroll line down
Ctrl-Up --- Scroll line up
Ctrl-P --- Go to matching bracket
--- ⌥-PageDown Scroll page down
--- ⌥-PageUp Scroll page up

Find/Replace

Windows/Linux Mac Action
Ctrl-F ⌘-F Find
Ctrl-H ⌘-⌥-F Replace
Ctrl-K ⌘-G Find next
Ctrl-⇧-K ⌘-⇧-G Find previous

Folding

Windows/Linux Mac Action
Alt-L, Ctrl-F1 ⌘-⌥-L, ⌘-F1 Fold selection
Alt-⇧-L, Ctrl-⇧-F1 ⌘-⌥-⇧-L, ⌘-⇧-F1 Unfold
Alt-0 ⌘-⌥-0 Fold all
Alt-⇧-0 ⌘-⌥-⇧-0 Unfold all

Other

Windows/Linux Mac Action
Tab Tab Indent
⇧-Tab ⇧-Tab Outdent
Ctrl-Z ⌘-Z Undo
Ctrl-⇧-Z, Ctrl-Y ⌘-⇧-Z, ⌘-Y Redo
Ctrl-, ⌘-, Show the settings menu
Ctrl-/ ⌘-/ Toggle comment
Ctrl-T Ctrl-T Transpose letters
Ctrl-Enter ⌘-Enter Enter full screen
Ctrl-⇧-U Ctrl-⇧-U Change to lower case
Ctrl-U Ctrl-U Change to upper case
Insert Insert Overwrite
Ctrl-⇧-E ⌘-⇧-E Macros replay
Ctrl-Alt-E --- Macros recording
Delete --- Delete
--- Ctrl-L Center selection