Ace Editor Help

Default Keyboard Shortcuts

Line Operations

Windows/LinuxMacAction
Ctrl-DCommand-DRemove line
Alt-Shift-DownCommand-Option-DownCopy lines down
Alt-Shift-UpCommand-Option-UpCopy lines up
Alt-DownOption-DownMove lines down
Alt-UpOption-UpMove lines up
Alt-DeleteCtrl-KRemove to line end
Alt-BackspaceCommand-BackspaceRemove to linestart
Ctrl-BackspaceOption-Backspace, Ctrl-Option-BackspaceRemove word left
Ctrl-DeleteOption-DeleteRemove word right
---Ctrl-OSplit line

Selection

Windows/LinuxMacAction
Ctrl-ACommand-ASelect all
Shift-LeftShift-LeftSelect left
Shift-RightShift-RightSelect right
Ctrl-Shift-LeftOption-Shift-LeftSelect word left
Ctrl-Shift-RightOption-Shift-RightSelect word right
Shift-HomeShift-HomeSelect line start
Shift-EndShift-EndSelect line end
Alt-Shift-RightCommand-Shift-RightSelect to line end
Alt-Shift-LeftCommand-Shift-LeftSelect to line start
Shift-UpShift-UpSelect up
Shift-DownShift-DownSelect down
Shift-PageUpShift-PageUpSelect page up
Shift-PageDownShift-PageDownSelect page down
Ctrl-Shift-HomeCommand-Shift-UpSelect to start
Ctrl-Shift-EndCommand-Shift-DownSelect to end
Ctrl-Shift-DCommand-Shift-DDuplicate selection
Ctrl-Shift-P---Select to matching bracket

Multicursor

Windows/LinuxMacAction
Ctrl-Alt-UpCtrl-Option-UpAdd multi-cursor above
Ctrl-Alt-DownCtrl-Option-DownAdd multi-cursor below
Ctrl-Alt-RightCtrl-Option-RightAdd next occurrence to multi-selection
Ctrl-Alt-LeftCtrl-Option-LeftAdd previous occurrence to multi-selection
Ctrl-Alt-Shift-UpCtrl-Option-Shift-UpMove multicursor from current line to the line above
Ctrl-Alt-Shift-DownCtrl-Option-Shift-DownMove multicursor from current line to the line below
Ctrl-Alt-Shift-RightCtrl-Option-Shift-RightRemove current occurrence from multi-selection and move to next
Ctrl-Alt-Shift-LeftCtrl-Option-Shift-LeftRemove current occurrence from multi-selection and move to previous
Ctrl-Shift-LCtrl-Shift-LSelect all from multi-selection

Go to

Windows/LinuxMacAction
LeftLeft, Ctrl-BGo to left
RightRight, Ctrl-FGo to right
Ctrl-LeftOption-LeftGo to word left
Ctrl-RightOption-RightGo to word right
UpUp, Ctrl-PGo line up
DownDown, Ctrl-NGo line down
Alt-Left, HomeCommand-Left, Home, Ctrl-AGo to line start
Alt-Right, EndCommand-Right, End, Ctrl-EGo to line end
PageUpOption-PageUpGo to page up
PageDownOption-PageDown, Ctrl-VGo to page down
Ctrl-HomeCommand-Home, Command-UpGo to start
Ctrl-EndCommand-End, Command-DownGo to end
Ctrl-LCommand-LGo to line
Ctrl-DownCommand-DownScroll line down
Ctrl-Up---Scroll line up
Ctrl-P---Go to matching bracket
---Option-PageDownScroll page down
---Option-PageUpScroll page up

Find/Replace

Windows/LinuxMacAction
Ctrl-FCommand-FFind
Ctrl-HCommand-Option-FReplace
Ctrl-KCommand-GFind next
Ctrl-Shift-KCommand-Shift-GFind previous

Folding

Windows/LinuxMacAction
Alt-L, Ctrl-F1Command-Option-L, Command-F1Fold selection
Alt-Shift-L, Ctrl-Shift-F1Command-Option-Shift-L, Command-Shift-F1Unfold
Alt-0Command-Option-0Fold all
Alt-Shift-0Command-Option-Shift-0Unfold all

Other

Windows/LinuxMacAction
TabTabIndent
Shift-TabShift-TabOutdent
Ctrl-ZCommand-ZUndo
Ctrl-Shift-Z, Ctrl-YCommand-Shift-Z, Command-YRedo
Ctrl-,Command-,Show the settings menu
Ctrl-/Command-/Toggle comment
Ctrl-TCtrl-TTranspose letters
Ctrl-EnterCommand-EnterEnter full screen
Ctrl-Shift-UCtrl-Shift-UChange to lower case
Ctrl-UCtrl-UChange to upper case
InsertInsertOverwrite
Ctrl-Shift-ECommand-Shift-EMacros replay
Ctrl-Alt-E---Macros recording
Delete---Delete
---Ctrl-LCenter selection
Do you like cookies? 🍪 We use cookies to ensure you get the best experience on our website. Learn more