Answer: No, Claude Code doesn't accept comments in a settings file. The page notes that the copyable settings files are valid JSON with no comments, and the commented versions are only for reading. Status: Confirmed Entry: tool/claude-code/settings/settings-json-comments Revision: 2 Digest: sha256:59ee369db767d02e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:49Z Last changed: 2026-11-15T12:25:39Z (comments allowed: — → doesn't accept comments in a settings file) Last verified: 2026-11-20T12:25:23Z Next check: 2026-11-21T12:25:23Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of comments allowed | doesn't accept comments in a settings file | [1] | 2026-11-20 copyable file format | valid JSON with no comments | [1] | 2026-11-20 Sources: [1] Anthropic. "Example settings files". https://code.claude.com/docs/en/settings-example.md Role: primary. Accessed: 2026-11-20T12:25:23Z Quote: "Claude Code doesn't accept comments in a settings file" (Supports: comments allowed) Quote: "It's valid JSON with no comments, so you can paste it as is and delete the keys you don't want." (Supports: copyable file format) Published: 2026-11-20T04:10:58Z Snapshot SHA-256: cac911d94631e3a20a0b720d43f6f71c3c90af796a2ff823b389e79de82aee51 (captured 2026-11-15T12:25:37Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-15T12:25:39Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:25:23Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:23Z Last attempt: 2026-11-20T12:25:23Z Notes and limitations: Extracted automatically from a single official source (section "Example settings files"). Related: https://latestn.com/tool/claude-code/settings/settings-precedence Which Claude Code settings file takes precedence when the same key is set in multiple places? https://latestn.com/tool/claude-code/settings/settings-precedence-managed-sources How does Claude Code decide which settings win when server-managed and endpoint-managed settings conflict? https://latestn.com/tool/claude-code/settings/spell-check-toggle How do I turn spell checking on or off in Claude Code? https://latestn.com/tool/claude-code/settings/set-working-directory-sdk How do I change the working directory for a Claude Code Agent SDK session? https://latestn.com/tool/claude-code/settings/setting-sources-precedence How do I control which settings sources the Claude Code Agent SDK loads? https://latestn.com/tool/claude-code/settings/settings-file-locations Where do I save Claude Code settings for myself, my team, or my organization? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:25:39Z | changed | comments allowed: — → doesn't accept comments in a settings file | [1] 2026-11-15T12:25:39Z | changed | copyable file format: It's valid JSON with no comments → valid JSON with no comments | [1] 2026-11-15T12:25:39Z | changed | comments accepted: Claude Code doesn't accept comments in a settings file → — | [1] 2026-11-13T03:05:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/settings-json-comments/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/settings-json-comments POST: https://latestn.com/dispute/tool/claude-code/settings/settings-json-comments with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/settings-json-comments?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Can I put comments in a Claude Code settings.json file? Revision 2, last verified 2026-11-20T12:25:23Z. https://latestn.com/tool/claude-code/settings/settings-json-comments (accessed 2026-11-21T09:52:34Z). @misc{LatestN_tool_claude_code_settings_settings_json_comments_r2, title = {Can I put comments in a Claude Code settings.json file?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/settings-json-comments}}, note = {Revision 2; digest sha256:59ee369db767d02e; last verified 2026-11-20T12:25:23Z; accessed 2026-11-21T09:52:34Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/settings-json-comments