! at start in Claude Code

Shell mode: run a command directly and add its output to the session.

Mac

! at start

Windows

! at start

Option-key shortcuts need your terminal to send Option as Meta on macOS. Source: Claude Code interactive mode docs, checked 2026-10-24.

More shortcuts

  • @: Trigger file path autocomplete.
  • ? on empty input: Toggle the shortcut help panel.
  • Ctrl+C: Interrupt a running operation, or clear the input. A second press on empty input exits.

All keyboard shortcuts

Remember it next time

/cards has a flip-card deck for every Claude Code shortcut.