Skip to content
BENIBIX Learn

Claude Code Prompt Shortcuts

Level 1 · Starting out

The keys and signs that save typing in the Claude Code prompt box. New lines, past prompts, file names, pasted images, shell commands and voice.

Course contentsLesson 4 of 16

After this lesson you can

  • Write a prompt over many lines
  • Name a file and paste an image
  • Run a shell command from the prompt box

9 mincovers 11 glossary entries

Worth reading first: Checkpoints and Control Keys

Which keys make the prompt box faster

Plain Enter sends your prompt. To start a new line instead, press Shift+Enter, which works out of the box in many newer terminals. A backslash then Enter works in every terminal, and so does Ctrl+J. Type ? on an empty prompt to see every key.

The up arrow brings back your past prompts, newest first, so you can send one again or fix a typo in it. Ctrl+R searches them as you type a word. When your prompt runs over more than one line, the up arrow first moves the cursor up inside it.

Long prompts are easier to write in a real editor. Ctrl+G opens your prompt in your own text editor. Save and close it, and the text comes back to the prompt box. Ctrl+S puts a half-written prompt aside so you can ask something else first. Press it again on an empty box to get it back.

Type @ and part of a name to point at a file. A list of matching files opens, and the one you pick goes into the prompt as its path. Claude then knows exactly which file you mean. Ctrl+V pastes an image from your clipboard and leaves a tag like [Image #1] where the cursor is.

A line that starts with ! runs in your shell at once. Its output joins the chat, and Claude replies to it. It is a quick way to show Claude a test run or a git status, without asking Claude to run it first.

A colon starts an emoji code. Type :heart: and it turns into the picture. Holding the space bar starts voice dictation, once voice dictation is switched on. You hold the key and speak, and your words show up in the prompt. Running /voice tap makes a tap start and stop it instead.

Prompt keys and signs

Press or typeWhat happens
Shift+Enter, \ then Enter, or Ctrl+JA new line, without sending
Up arrowThe last prompt you sent in this folder
Ctrl+RSearch your past prompts
Ctrl+GEdit the prompt in your own text editor
Ctrl+SPut the draft aside, then get it back
Ctrl+VPaste an image from the clipboard
@ and a namePick a file to point at
! at the startRun the line in your shell
? on an empty promptShow every key you can press
: and a nameTurn an emoji code into the emoji
Hold SpaceSpeak your prompt, once dictation is on
console
! npm test
The test run happens in your shell, and its output lands in the chat for Claude to read.
Three ways to start a new line without sending the prompt.

Worked example

Jack shows Claude the failure

Jack's build fails, and he does not want to paste 200 lines of log by hand. He types ! npm run build in the prompt box.

The output lands in the chat. He adds one line pointing at @src/config.ts, and Claude finds the typo on line 14.

The words for this lesson11

Check yourself

Which way to start a new line works in every terminal?

Finished this lesson?

Marking it complete also marks its 11 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.