Skip to content

↑↓ moveEnter openEsc close

Open slash commands in Claude Code

Claude Code 2.x · 34 shortcuts · checked Nov 2026 · Source: Anthropic docs

In Claude Code, press / on Mac, Windows, Linux. Works when: start of the prompt.

More Claude Code shortcuts: prompt shortcuts

ActionMacWindowsLinux
Show the shortcut listShift/Shift/Shift/
Run a shell command directly (bash mode)Shift1Shift1Shift1
Mention a file or folderShift2Shift2Shift2
Accept the suggestion or file pathTabTabTab
New line (works in any terminal)CtrlJCtrlJCtrlJ
New line with Option+EnterOptionEnter——

All 34 Claude Code shortcuts