docs: 更新vscode使用参数配置 [skip ci]

This commit is contained in:
shaw
2025-09-30 09:29:44 +08:00
parent 29ee52ee2e
commit c62b397fde
3 changed files with 21397 additions and 17480 deletions

View File

@@ -394,6 +394,18 @@ export ANTHROPIC_BASE_URL="http://127.0.0.1:3000/api/" # 根据实际填写你
export ANTHROPIC_AUTH_TOKEN="后台创建的API密钥" export ANTHROPIC_AUTH_TOKEN="后台创建的API密钥"
``` ```
**VSCode Claude 插件配置:**
如果使用 VSCode 的 Claude 插件,需要在 `~/.claude/config.json` 文件中配置:
```json
{
"primaryApiKey": "crs"
}
```
如果该文件不存在请手动创建。Windows 用户路径为 `C:\Users\你的用户名\.claude\config.json`。
**Gemini CLI 设置环境变量:** **Gemini CLI 设置环境变量:**
```bash ```bash

File diff suppressed because it is too large Load Diff

View File

@@ -278,6 +278,32 @@
</div> </div>
</div> </div>
<!-- VSCode 插件配置 -->
<div class="mt-6 rounded-lg border border-indigo-200 bg-indigo-50 p-3 sm:p-4">
<h6 class="mb-2 font-medium text-indigo-800 dark:text-indigo-300">
VSCode Claude 插件配置
</h6>
<p class="mb-3 text-sm text-indigo-700">
如果使用 VSCode Claude 插件需要在配置文件中进行设置
</p>
<div class="mb-3 space-y-2">
<p class="text-sm text-indigo-700">
<strong>配置文件位置</strong>
<code class="rounded bg-indigo-100 px-1"
>C:\Users\你的用户名\.claude\config.json</code
>
</p>
<p class="text-xs text-indigo-600">💡 如果该文件不存在请手动创建</p>
</div>
<div
class="overflow-x-auto rounded bg-gray-900 p-2 font-mono text-xs text-green-400 sm:p-3 sm:text-sm"
>
<div class="whitespace-nowrap text-gray-300">{</div>
<div class="whitespace-nowrap text-gray-300">"primaryApiKey": "crs"</div>
<div class="whitespace-nowrap text-gray-300">}</div>
</div>
</div>
<!-- 验证环境变量设置 --> <!-- 验证环境变量设置 -->
<div class="mt-6 rounded-lg border border-blue-200 bg-blue-50 p-3 sm:p-4"> <div class="mt-6 rounded-lg border border-blue-200 bg-blue-50 p-3 sm:p-4">
<h6 class="mb-2 font-medium text-blue-800 dark:text-blue-300">验证环境变量设置</h6> <h6 class="mb-2 font-medium text-blue-800 dark:text-blue-300">验证环境变量设置</h6>
@@ -849,6 +875,30 @@
</div> </div>
</div> </div>
<!-- VSCode 插件配置 (macOS) -->
<div class="mt-6 rounded-lg border border-indigo-200 bg-indigo-50 p-3 sm:p-4">
<h6 class="mb-2 font-medium text-indigo-800 dark:text-indigo-300">
VSCode Claude 插件配置
</h6>
<p class="mb-3 text-sm text-indigo-700">
如果使用 VSCode Claude 插件需要在配置文件中进行设置
</p>
<div class="mb-3 space-y-2">
<p class="text-sm text-indigo-700">
<strong>配置文件位置</strong>
<code class="rounded bg-indigo-100 px-1">~/.claude/config.json</code>
</p>
<p class="text-xs text-indigo-600">💡 如果该文件不存在请手动创建</p>
</div>
<div
class="overflow-x-auto rounded bg-gray-900 p-2 font-mono text-xs text-green-400 sm:p-3 sm:text-sm"
>
<div class="whitespace-nowrap text-gray-300">{</div>
<div class="whitespace-nowrap text-gray-300">"primaryApiKey": "crs"</div>
<div class="whitespace-nowrap text-gray-300">}</div>
</div>
</div>
<!-- Gemini CLI 环境变量设置 --> <!-- Gemini CLI 环境变量设置 -->
<div class="mt-8"> <div class="mt-8">
<h5 <h5
@@ -1556,6 +1606,30 @@
</div> </div>
</div> </div>
</div> </div>
<!-- VSCode 插件配置 (Linux) -->
<div class="mt-6 rounded-lg border border-indigo-200 bg-indigo-50 p-3 sm:p-4">
<h6 class="mb-2 font-medium text-indigo-800 dark:text-indigo-300">
VSCode Claude 插件配置
</h6>
<p class="mb-3 text-sm text-indigo-700">
如果使用 VSCode Claude 插件需要在配置文件中进行设置
</p>
<div class="mb-3 space-y-2">
<p class="text-sm text-indigo-700">
<strong>配置文件位置</strong>
<code class="rounded bg-indigo-100 px-1">~/.claude/config.json</code>
</p>
<p class="text-xs text-indigo-600">💡 如果该文件不存在请手动创建</p>
</div>
<div
class="overflow-x-auto rounded bg-gray-900 p-2 font-mono text-xs text-green-400 sm:p-3 sm:text-sm"
>
<div class="whitespace-nowrap text-gray-300">{</div>
<div class="whitespace-nowrap text-gray-300">"primaryApiKey": "crs"</div>
<div class="whitespace-nowrap text-gray-300">}</div>
</div>
</div>
</div> </div>
<!-- 第四步开始使用 --> <!-- 第四步开始使用 -->