# Shift+Enter Shortcut

> The key that adds a new line to the prompt instead of sending it.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Shift+Enter, Ctrl+J, new line in Claude Code, multiline prompt

## Think of it like

It is like the key that starts a new line. It does not send the page.

## Definition

Shift+Enter is the Claude Code shortcut that starts a new line in the prompt instead of sending it. It works out of the box in iTerm2, WezTerm, Ghostty, Kitty, Warp and Windows Terminal. A backslash then Enter works in every terminal, and so does Ctrl+J. Plain Enter sends the prompt.

## Example

Leo wants to list three steps, one per line. He presses Shift+Enter after each step and Enter at the end.

## Why it matters

Lists and code read better on their own lines.

## Common mistake

Pressing Shift+Enter in a terminal that does not pass it on, and sending too soon. Use Ctrl+J there.

## Three principles

- **New line, no send.** Shift+Enter.
- **Works everywhere.** \ then Enter, or Ctrl+J.
- **Enter sends.** The prompt.

## Related terms

- [/terminal-setup Command](https://learn.benibix.com/term/ai/terminal-setup-command)
- [Ctrl+G Shortcut](https://learn.benibix.com/term/ai/ctrl-g-shortcut)

## Taught in

- [Claude Code Prompt Shortcuts](https://learn.benibix.com/learn/ai-claude-code/claude-code-prompt-shortcuts): Claude Code, 4/16

![Enter sends the prompt, while Shift+Enter, a backslash then Enter, and Ctrl+J each start a new line instead.](https://learn.benibix.com/diagrams/multiline-input-keys.svg)

---

Source: https://learn.benibix.com/term/ai/shift-enter-shortcut
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
