Skip to content

↑↓ moveEnter openEsc close

Mention a file or folder in Claude Code

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

In Claude Code, press Shift+2 on Mac, Windows, Linux.

More Claude Code shortcuts: prompt shortcuts

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

All 34 Claude Code shortcuts