Skip to content

8/16/2025

Keyboard Shortcuts

Keyboard Modes

Ace Editor supports multiple keyboard handlers, each simulating the shortcut key style of different editors.

Supported Keyboard Modes

  • Default: Default keyboard mode, similar to traditional text editor mode
  • VS Code: VS Code editor keyboard mode, mimicking VS Code's shortcut key style
  • Sublime: Sublime Text editor keyboard mode, mimicking Sublime Text's shortcut key style
  • Emacs: Emacs editor keyboard mode, mimicking Emacs' shortcut key style
  • Vim: Vim editor keyboard mode, mimicking Vim's shortcut key style

Switching Keyboard Modes

  1. Open plugin settings
  2. Find the "Keyboard" option
  3. Select your preferred keyboard mode

Custom Shortcut Features

Font Zooming

On the code editing page, Ctrl/Meta key + mouse wheel can quickly zoom the font

Use Ctrl key on Windows/Linux

Use Meta key (i.e., Command key) on Mac

Shortcuts

default

Default mode is Ace Editor's native shortcuts. Here is the main shortcut list[1]:

Windows/LinuxMacFunction
Ctrl+DCommand+DDelete current line
Alt+Shift+DownCommand+Option+DownCopy line down
Alt+Shift+UpCommand+Option+UpCopy line up
Alt+DownOption+DownMove line down
Alt+UpOption+UpMove line up
Alt+DeleteCtrl+KDelete to line end
Alt+BackspaceCommand+BackspaceDelete to line start
Ctrl+BackspaceOption+BackspaceDelete word left
Ctrl+DeleteOption+DeleteDelete word right
Ctrl+OCtrl+OSplit line
Windows/LinuxMacFunction
Ctrl+ACommand+ASelect all
Ctrl+Shift+DCommand+Shift+DDuplicate selection
Ctrl+Shift+LCommand+Shift+LExtend to line
Shift+HomeShift+HomeSelect to line start
Shift+EndShift+EndSelect to line end
Windows/LinuxMacFunction
Ctrl+Alt+UpCtrl+Option+UpAdd cursor above
Ctrl+Alt+DownCtrl+Option+DownAdd cursor below
Ctrl+Alt+RightCtrl+Option+RightAdd next occurrence to multi-selection
Ctrl+Alt+LeftCtrl+Option+LeftAdd previous occurrence to multi-selection
Windows/LinuxMacFunction
Ctrl+FCommand+FFind
Ctrl+HCommand+Option+FReplace
Ctrl+KCommand+GFind next
Ctrl+Shift+KCommand+Shift+GFind previous
Windows/LinuxMacFunction
Ctrl+ZCommand+ZUndo
Ctrl+YCommand+YRedo
Ctrl+/Command+/Toggle comment
Ctrl+LCommand+LGo to line
F1F1Open command palette

vscode

VS Code mode inherits most default mode shortcuts. Here are some unique shortcuts:

Windows/LinuxMacFunction
Ctrl+Shift+KCommand+Shift+KDelete line
Ctrl+EnterCommand+EnterInsert line below
Ctrl+Shift+EnterCommand+Shift+EnterInsert line above
Ctrl+]Command+]Increase indent
Ctrl+[Command+[Decrease indent
Alt+ClickOption+ClickInsert cursor
Ctrl+SpaceCommand+SpaceTrigger suggestion

sublime

Sublime Text mode main shortcuts include:

Windows/LinuxMacFunction
Ctrl+K, Ctrl+KCommand+K, Command+KDelete to line end
Ctrl+K, Ctrl+BackspaceCommand+K, Command+BackspaceDelete to line start
Ctrl+Shift+UpCommand+Shift+UpSwap line up
Ctrl+Shift+DownCommand+Shift+DownSwap line down
Ctrl+MCommand+MJump to matching bracket
Ctrl+DCommand+DSelect next occurrence

emacs

Emacs mode uses traditional Emacs-style shortcuts:

ShortcutFunction
Ctrl+FMove forward one character
Ctrl+BMove backward one character
Ctrl+PMove up one line
Ctrl+NMove down one line
Ctrl+AMove to line start
Ctrl+EMove to line end
Alt+FMove forward one word
Alt+BMove backward one word

vim

Vim mode simulates Vim editor's modal editing features:

ModeShortcutFunction
Normal modeh,j,k,lCursor movement
Normal modeiEnter insert mode
Normal modevEnter visual mode
Normal modeddDelete current line
Normal modeyyCopy current line
Normal modepPaste
Normal modeuUndo
Command mode:wSave
Command mode:qQuit

  1. ace default shortcuts ↩︎

Released under the GPL-3.0 license.