1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VS Code×Claude Codeで,Enterを改行にして送信をCmd+Enter/CTRL+Enterにする(TIPS)

1
Last updated at Posted at 2026-11-01

はじめに

VS CodeのClaude Code拡張機能では,入力欄でEnterを押すとプロンプトが送信されてしまいます。改行のつもりでEnterを押して,書きかけのプロンプトを送ってしまい、ESCキーで「待って待って」と止めることが日常茶飯事です。

小さなストレスだったので、Enterを改行に,送信をCmd+Enter/CTRL+Enterに変更する設定があったので,手順をメモしておきます。

検証環境

2026年11月1日時点で,次の環境で試しました。

  • macOS 27.2
  • VS Code 1.144.0
  • Claude Code for VS Code 2.1.314

設定

claudeCode.useCtrlEnterToSend を true にします。既定値は false です。

拡張機能に同梱されている package.json には,この設定が次のように説明されています。

When enabled, use Ctrl/Cmd+Enter to send prompts instead of just Enter. This allows Enter to create new lines.

私は,ユーザー設定の settings.json(macOSでは ~/Library/Application Support/Code/User/settings.json)に1行足しました。

settings.json
{ "claudeCode.useCtrlEnterToSend": true }

すでにほかの設定が書かれている場合は,その中に "claudeCode.useCtrlEnterToSend": true, の1行を足します。前後の行のカンマが抜けると,JSONとして読めなくなるので注意してください。

結果

設定を保存した後,入力欄でEnterを押すと改行になりました。送信は,Cmd+Enter(Windows・LinuxではCtrl+Enter)です。

補足:設定を変えなくてもShift+Enterで改行できる

公式ドキュメントの「Use the prompt box」の項には,Shift+Enterで送信せずに改行できると書かれています。Shift+Enterに慣れられるなら,設定を変える必要はありません。私はEnterで改行したかったので,設定のほうを変えました。

この記事の制約

  • 試したのはmacOSだけです。Windows・Linuxでの動きは確かめていません
  • ターミナルで使うClaude Code(CLI)は対象外です
  • この設定がどの版の拡張機能から入ったのかは調べてません

参考リンク

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?