0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Code の 改行がShift+Enter でできない!

0
Posted at

状況

私の環境では、VSCodeでCLI版の Claude Code を使っていると、Shift+Enter が改行にならずそのまま送信されてしまっていた。
もう一つの改行キー Ctrl+J も、VSCode のショートカット(パネル表示トグル)に吸われてしまっていた。

対処法

VSCode や Cursor なら /terminal-setup を実行すれば自動で設定される。
それ以外(Antigravity など VSCode フォーク系)は対応ターミナルとして認識されず弾かれるので、手動で入れる。

手動設定

コマンドパレット →「基本設定: キーボードショートカット (JSON)」で keybindings.json を開き、以下を追加する。

[
  {
    "key": "shift+enter",
    "command": "workbench.action.terminal.sendSequence",
    "args": {
      "text": "\u001b[13;2u"
    },
    "when": "terminalFocus"
  }
]

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?