Run a shell command directly (bash mode) in Claude Code
In Claude Code, press Shift+1 on Mac, Windows, Linux. Works when: start of the prompt.
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=deleteInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'return
ShiftZXCVBNM,./Shift↑
fnctrloptcmdcmdopt←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlWinAltAltWinMenuCtrl←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlSuperAltAltSuperMenuCtrl←↓→
See it happen Press the shortcut above, or
More Claude Code shortcuts: prompt shortcuts
| Action | Mac | Windows | Linux |
|---|---|---|---|
| Show the shortcut list | Shift/ | Shift/ | Shift/ |
| Open slash commands | / | / | / |
| Mention a file or folder | Shift2 | Shift2 | Shift2 |
| Accept the suggestion or file path | Tab | Tab | Tab |
| New line (works in any terminal) | CtrlJ | CtrlJ | CtrlJ |
| New line with Option+Enter | OptionEnter | — | — |