Day 33 of 52 · about 10 min · Basics · Bonus
Set up your terminal and learn the shortcuts that matter
A few keys save more time than any clever prompt: a new line without sending, stopping Claude mid-step, and rewinding a turn that went wrong. Set them up once and use them all day.
You’ll finish with
- Multiline prompts that work in your terminal.
- The shortcuts that stop, rewind and redirect Claude.
- One shortcut remapped in
~/.claude/keybindings.json.
You’ll need
- Claude Code running in the terminal you use every day.
Before you start
Tell us about your setup and the steps change to fit it. Your answers stay in this browser, and you can change them at any time.
Which system are you on?
Commands differ between systems. Pick the one you’ll run Claude Code on.
The steps
One step at a time. When a step’s check matches, tick it and the next one opens.
Step 1 of 4: Find how your terminal adds a new line
Enter sends your prompt, so you need another key for a line break.Works in every terminal
Ctrl+J\thenEnter
Shift+Enter, no setup
- Ghostty, Kitty, iTerm2, WezTerm
- Warp, Apple Terminal
- Windows Terminal
Shift+Enter after /terminal-setup
- VS Code, Cursor, Devin Desktop
- Zed
- Alacritty before 0.16
gnome-terminal and JetBrains IDEs have no Shift+Enter, so use Ctrl+Jthere.Check it worked
You can type a two-line prompt, and it sends only when you press
Enter.Step 2 of 4: Run /terminal-setup if your terminal needs it
One command writes the key binding into your terminal’s own settings.In Claude CodeYou type: /terminal-setup
What happens: In VS Code, Cursor, Devin Desktop, Alacritty or Zed, it adds a Shift+Enter binding.
What happens: In Apple Terminal, it turns on Option+Enter for new lines and turns off the audible bell.
Run it in the terminal itself, not inside tmux or screen. Check it worked
If your terminal was in the third column,
Shift+Enternow adds a line instead of sending.Step 3 of 4: Learn the keys that save the most time
Most of them help you stop, undo or steer without retyping.While Claude works
Escstops it and keeps the work so farCtrl+Bsends a running command or agent to the backgroundCtrl+Oshows the full transcript
At the prompt
EscEscon an empty prompt opens rewindShift+Tabcycles permission modesCtrl+Rsearches your past promptsCtrl+Gopens the prompt in your editor
Press ?on an empty prompt for the full list.Check it worked
Press
Esctwice on an empty prompt. The rewind menu opens;Esccloses it.Step 4 of 4: Remap one key
Run /keybindings to create or open your shortcuts file.Changes to ~/.claude/keybindings.json
Added: {Added: "$schema": "https://www.schemastore.org/claude-code-keybindings.json",Added: "bindings": [Added: {Added: "context": "Chat",Added: "bindings": { "ctrl+e": "chat:externalEditor" }Added: }Added: ]Added: }Ctrl+Ethen opens your editor instead of jumping to the end of the line.If the file already has a
Chatblock, add only thectrl+eline to it. Changes apply without a restart.Check it worked
Type a few words and press
Ctrl+E. Your editor opens with them.If it didn’t work
`Ctrl+E` still jumps to the end of the line.
Check the JSON is valid and the context is
Chat. Start Claude Code with--debugto see keybinding warnings.
Finish · 4 of 4 steps to go
Your hands know the way
What you’ll have checked
- A two-line prompt sends only on
Enter. EscEscopens rewind.Ctrl+Eopens your editor.
Lesson updates by email
Get lesson updates by email
Leave your email and we’ll tell you when we add or update a lesson.
Claude Code for your team
Want Claude Code set up across your team?
HorizonLux sets up and repairs Claude Code for teams: CLAUDE.md rules, hooks that enforce them and reviewed MCP servers. Book a free call to talk it through.
Related
Questions
Questions about Day 33
The screen flickers or jumps while Claude works. What helps?
Try fullscreen rendering, a [research preview](https://code.claude.com/docs/en/fullscreen): run `/tui fullscreen`, and `/tui default` to switch back.
Sources
Checked against the official Claude Code docs on .
Independent resource, not affiliated with Anthropic. HorizonLux wrote this lesson; Claude Code is made by Anthropic.