settings.json

spellcheck

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

入力ボックスのテキストに対してスペルチェックを行い、スペルミスのある単語に下線を引きます。

既定値: unset, so spell checking is off; checker defaults to "auto", the first of the three found on PATH; language defaults to the checker's own dictionary; color defaults to the theme's error color

記述例

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

使い方・用途

  • デフォルト値は未設定(スペルチェックはオフ)
  • v2.1.235 以降で利用可能
  • checkerPATH で見つかった最初のものにデフォルト("auto")
  • language はチェックャーの辞書にデフォルト、color はテーマのエラー色にデフォルト
  • 管理設定、--settings、ユーザー設定の順に優先されます
英語原文(公式ドキュメントより)

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](/docs/en/interactive-mode#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件)

Fixed
絵文字の直後にタイプされた誤字を spellcheck が下線で示さない問題を修正。
英語原文を表示
Fixed spellcheck not underlining a misspelled word typed directly after an emoji

変更前

絵文字の直後にタイプされた誤字は、spellcheck によって下線で示されない。

変更後

絵文字の直後にタイプされた誤字も、spellcheck によって下線で示されるようになる。

ユーザーへの恩恵

ユーザーは絵文字を含むテキストでも誤字を検出できる。

v2.1.235(1件)

Added
プロンプト入力時に入力されたスペルミスのある単語に下線を引く、オプションのスペルチェック設定を追加した
英語原文を表示
Added an optional spellcheck setting that underlines misspelled words in the prompt input as you type, using your installed aspell, hunspell, or ispell

変更前

プロンプトを入力する際、スペルミスがあっても画面上で強調表示されないため、送信するまで誤字に気づきにくい状況だった

変更後

利用環境にインストールされている aspell、hunspell、または ispell を使用して、入力中のスペルミスのある単語の下にリアルタイムで下線が表示されるようになる

ユーザーへの恩恵

プロンプト内の誤字やタイポに送信する前に気づくことができるようになる