Skip to content
  1. Extras
  2. Ace
  3. Keyboard shortcuts

Keyboard shortcuts ​

Full Ace command list in the manager: Ctrl+Alt+H (on Mac Command+Option+H) while the editor is focused. Emmet adds its own entries to the same table.

Ace and package ​

ShortcutAction
Ctrl+Alt+HShortcut table
Ctrl+Shift+BHTML beautify for every mode. There is no separate PHP or CSS formatter
Alt+ZToggle word wrap
Ctrl+F11Fullscreen (Windows/Linux)
Cmd+F12Fullscreen (Mac)
Ctrl+Space, Ctrl+Shift+Space, Alt+SpaceMODX / PHP completions. There is no Cmd+Space
TabExpand Tab snippet (ace.snippets) or indent
Shift+Ctrl+AEmmet: wrap with abbreviation. The same shortcut on Mac
Ctrl+S / Cmd+SSave the form (since 1.9.10 the hidden field stays in the form in fullscreen)

Ace core (basic) ​

ShortcutAction
Ctrl+FFind
Ctrl+HReplace
Ctrl+LGo to line. On Windows this opens the package dialog. On Mac go to line is Command+Option+L
Ctrl+/Comment
Ctrl+DDelete the line. On Mac Command+D does the same
Ctrl+Alt+→Next occurrence (selectMoreAfter)
Ctrl+Alt+↑ / ↓Multicursor

Ctrl+G is not go to line. Use the Ctrl+Alt+H dialog as the source of truth.

Fullscreen ​

Ace moves the editor to document.body. .ace_maximized uses z-index 12000. Until JavaScript measures insets, top is 60px and left is 70px. Insets then come from the header or side menu (#modx-header) and the button bar (#modx-action-buttons).