Command reference ยท Claude Code
/terminal-setup
Configures terminal keybindings such as Shift+Enter.
Sets up several terminal settings in one step, most importantly Shift+Enter for a line break instead of sending. The command is only needed in VS Code, Cursor, Devin Desktop, Alacritty, and Zed โ other terminals like Ghostty, Kitty, iTerm2, WezTerm, Warp, Apple Terminal, or Windows Terminal already support Shift+Enter without setup. In gnome-terminal and JetBrains IDEs, the command is missing entirely; there, Ctrl+J or backslash followed by Enter helps instead. Depending on the terminal, the command does more than just assign keys: in VS Code, Cursor, and Devin Desktop it additionally disables GPU acceleration and adjusts the mouse wheel sensitivity for fullscreen mode. In Apple Terminal it activates Option as the Meta key and the audible bell; in iTerm2 it lets /copy access the system clipboard.
โ WHEN TO USE IT?
Activate Shift+Enter in the VS Code or Cursor terminal
/terminal-setup
Unlock clipboard access for /copy in iTerm2
run /terminal-setup once in iTerm2, after that /copy can write text to the system clipboard.
โ WHEN NOT TO?
A terminal that already supports the shortcuts out of the box
According to the docs, terminals like Ghostty, Kitty, iTerm2, WezTerm, Warp, Apple Terminal, or Windows Terminal already support Shift+Enter without setup.
Better: do nothing โ the shortcuts already work
gnome-terminal or a JetBrains IDE (PyCharm, Android Studio, โฆ)
According to the docs, Shift+Enter is technically unavailable there, /terminal-setup doesn't help there.
Better: use Ctrl+J or backslash followed by Enter for a line break
SOURCES
- Claude Code docs (official) โ code.claude.com
MORE COMMANDS ยท Claude Code