spellcheck

settings.json型object記述場所ユーザー設定または管理者設定

インストールしたスペルチェッカーを使い、入力中にプロンプト入力欄のスペルミスの単語に下線を引く。Claude Code がチェックするのは入力ボックス内のテキストのみである。aspell、hunspell、ispell のインストール方法とチェッカーの対象範囲については Check spelling as you type を参照。Claude Code v2.1.235 以降が必要。

既定値未設定の場合、スペルチェックはオフである。checker の既定値は auto で、PATH 上で見つかった 3 つのうち最初のもの。language の既定値はチェッカー自身の辞書。color の既定値はテーマのエラー色。

記述例

{
  "spellcheck": { "enabled": true, "language": "en_GB" }
}

使い方・用途

  • プロンプト入力欄にタイプした英文のスペルミスを即座に下線で確認したいときに使う
  • 自分でインストールした aspell、hunspell、ispell などのスペルチェッカーを Claude Code から利用したいときに使う
  • セルフホスト版の設定のように、プロジェクト単位の settings.json では管理せずユーザー設定や管理設定で有効化したいときに使う
英語原文

Underline misspelled words in the prompt input as you type, using a spell checker you install. Claude Code checks only the text in the input box. Check spelling as you type covers installing aspell, hunspell, or ispell and what the checker covers. Requires Claude Code v2.1.235 or later.

関連する変更履歴

v2.1.243(1件)

絵文字の直後に直接入力したスペルミスの単語に spellcheck が下線を引かなかった問題を修正した。
英語原文を表示
Fixed spellcheck not underlining a misspelled word typed directly after an emoji

関連ドキュメント

v2.1.235(1件)

入力中のプロンプトにスペルミスの単語へ下線を引くオプションの spellcheck 設定を追加した。インストール済みの aspell、hunspell、ispell を使用する
英語原文を表示
Added an optional spellcheck setting that underlines misspelled words in the prompt input as you type, using your installed aspell, hunspell, or ispell

変更後

プロンプト入力欄に入力中のスペルミスの単語が自動的に下線で表示されるため、送信前に誤字に気づいて修正できる。