1
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 便利なキー操作まとめ

1
Posted at

この記事は、筆者が Zennに投稿した記事 の転載です。

はじめに

Claude Codeを使う際に覚えておくと便利なキー操作をまとめました。これらのショートカットを覚えると、作業効率がグッと上がります。

起動・終了

操作 キー・コマンド 説明
確認スキップで起動 claude --dangerously-skip-permissions 起動時の確認をスキップ
終了 Ctrl+C Claude Codeを終了
過去の会話を再開 claude --resume 前回の続きから再開

操作中のショートカット

操作 キー 説明
処理のキャンセル Esc 実行中の処理を中断
改行 Ctrl+J プロンプト入力中に改行を挿入
モード切替 Shift+Tab 入力モードを切り替え
過去の指示に戻る Escを2回 以前のユーザー指示を呼び出す
詳細表示 Ctrl+R 折りたたまれた出力を展開

特殊な入力記号

記号 用途 例
# メモリ(CLAUDE.md)に追記 # この情報を覚えておいて
! bashコマンドを実行 !ls -laでファイル一覧表示
@ ファイル・フォルダを指定 @src/index.tsで内容を読み込む

まとめ

Claude Codeのキー操作を覚えると、ターミナルから離れずに素早く作業できます。特に以下の3つは使用頻度が高いので、ぜひ覚えてみてください:

  • Esc:処理のキャンセル
  • !:bashコマンドの実行
  • @:ファイル指定

慣れてくると手放せなくなりますよ!

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