15
3

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でのプロンプト入力に標準のテキストエディタを使う

15
Posted at

はじめに

CLI系の生成AIを使っていて、変換の確定や改行のつもりでエンターを押したのに送信されてしまった経験ってありませんか?私はよくあります。

Claude Codeの2.0.10からプロンプトの編集にシステム標準のテキストエディタを使えるようになっていたのでメモ代わりの記事を書いておきます。

2.0.10のCHANGELOGから抜粋

Press Ctrl-G to edit your prompt in your system's configured text editor

CHANGELOG 全体

環境

今回の記事を書いている環境はこちら

  • Claude Code 2.0.36
  • OS: macOS Tahoe 26.0
  • ターミナル: Warp v0.2025.11.05.08.12.stable_00
  • テキストエディタ: Visual Studio Code 1.105.1

やり方

やり方はとても簡単で、Claude Codeのプロンプト入力中にctrl + gを押すだけです。
複数行入力しようとすると、下にctrl-g to edit prompt in codeというヒントも出てきてますね。

スクリーンショット 2025-11-10 20.46.43.png

そうすると、システム標準のテキストエディタ(私の場合はVSCode)が立ち上がります。
入力中の文字列があったら、それも引き継がれます。

スクリーンショット 2025-11-10 20.52.37.png

あとはプロンプトを入力して、

スクリーンショット 2025-11-10 20.55.29.png

入力し終わったら、保存してテキストエディタのタブなりウィンドウを閉じるだけです。

スクリーンショット 2025-11-10 20.58.35.png

すると Claude Code にテキストが反映されるので、問題なければ送信しましょう。

以上!

15
3
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
15
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?