+
+選擇 Claude Code 在連接 [VS Code](/docs/zh-TW/vs-code) 或 [JetBrains](/docs/zh-TW/jetbrains#features) IDE 時,顯示其提議的 `Edit` 或 `Write` 變更的差異的位置:`"auto"` 在 IDE 的差異檢視器中開啟它,`"terminal"` 將其保留在終端中。僅當 Claude Code 連接到 VS Code 或 JetBrains IDE 時,才會在 `/config` 中顯示為**差異工具**。
+
+* **範圍**:[`全域設定`](#scopes)
+* **類型**:字串,其中之一:
+ * `"auto"`:當連接 VS Code 或 JetBrains IDE 時,Claude Code 在 IDE 的差異檢視器中開啟差異
+ * `"terminal"`:Claude Code 將差異保留在終端中
+* **預設值**:`"auto"`
+
+```json ~/.claude.json theme={null}
+{
+ "diffTool": "terminal"
+}
+```
+
+Claude Code 會忽略 `settings.json` 中的此金鑰。
+
+
+ `externalEditorContext`
+
+
+當您按下 `Ctrl+G` 時,Claude Code 會在您的[外部編輯器](/docs/zh-TW/interactive-mode#general-controls)中開啟您正在輸入的提示。啟用此金鑰時,編輯器緩衝區會以 Claude 的前一個回應作為 `#` 註解行開始,因此您可以在寫入時讀取它,Claude Code 會在您儲存時移除這些行。會在 `/config` 中顯示為**在外部編輯器中顯示最後回應**。
+
+* **範圍**:[`全域設定`](#scopes)
+* **類型**:布林值
+ * `true`:編輯器緩衝區以 Claude 的前一個回應作為 `#` 註解行開始,Claude Code 會在您儲存時移除這些行
+ * `false`:編輯器緩衝區僅以您的提示開啟
+* **預設值**:`false`
+
+```json ~/.claude.json theme={null}
+{
+ "externalEditorContext": true
+}
+```
+
+啟用此功能時,Claude Code 開啟的緩衝區看起來像這樣,只有標記行下方的文字會作為您的提示發送:
+
+```text theme={null}
+# ─── Claude's last response (for reference; removed on save) ───
+# I added the retry loop to fetchUser in src/api.ts and a test
+# for the timeout case. Want me to wire the same retry into
+# fetchOrders?
+# ─── Write your reply below this line ──────────────────────────
+
+Yes, and cap it at three attempts.
+```
+
+Claude Code 保留回應的最後 50 行,並用 `# … (earlier output truncated)` 標記截斷。
+
+Claude Code 會忽略 `settings.json` 中的此金鑰。
+
+