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?

iTerm2でClaude CodeのShift + Enter改行設定

Posted at

いつかの自分のためのメモ。

自動設定

Claude Code内で以下のコマンドを実行:

/terminal-setup

手動設定(自動設定がうまくいかない場合)

  1. iTerm2 → Preferences (⌘ + ,)を開く

  2. ProfilesKeys タブを選択

  3. Key Mappings セクションの "+" ボタンをクリック

  4. キーボードショートカットを記録

    • "Keyboard Shortcut" の入力欄をクリック
    • 実際に Shift + Enter を押す
    • ⇧↩ のように表示される
  5. Action ドロップダウンで:

    • "Send Hex Code" を選択
  6. テキスト欄 に:

    • 0x1b 0x0d と入力
  7. OK をクリック

  8. iTerm2を再起動

代替方法

Shift + Enterが設定できない場合:

  • \ + Enter: 複数行入力モード(すべてのターミナルで動作)
  • Option + Enter: macOSのデフォルト(Left Option Key を "Esc+" に設定する必要あり)
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?