> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rixapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Continue

> 开源 AI 编程助手，支持 VS Code 和 JetBrains，通过配置文件灵活接入多个模型提供商。

[Continue](https://www.continue.dev/) 是一款开源 AI 编程助手扩展，支持 VS Code 和 JetBrains IDE，提供代码补全、内联编辑、对话问答等功能，可同时配置多个模型。

## 安装

在 VS Code 扩展市场搜索 **Continue** 并安装，或访问：
[VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)

JetBrains 用户请访问：[JetBrains Marketplace](https://plugins.jetbrains.com/plugin/22707-continue)

## 配置

Continue 通过 `~/.continue/config.yaml` 文件进行配置。安装后按 `Cmd/Ctrl + Shift + P` 搜索 **Continue: Open config** 打开配置文件。

### OpenAI 兼容配置（推荐）

```yaml theme={null}
models:
  - name: gpt-4o
    provider: openai
    model: gpt-4o
    apiKey: sk-your-api-key
    apiBase: https://api.ephone.ai/v1

  - name: DeepSeek R1
    provider: openai
    model: deepseek-r1
    apiKey: sk-your-api-key
    apiBase: https://api.ephone.ai/v1
```

### Anthropic 兼容配置

```yaml theme={null}
models:
  - name: Claude Opus
    provider: anthropic
    model: claude-opus-4-5-20251101
    apiKey: sk-your-api-key
    apiBase: https://api.ephone.ai/anthropic
```

### 同时配置多个模型

```yaml theme={null}
models:
  - name: GPT-4o（通用）
    provider: openai
    model: gpt-4o
    apiKey: sk-your-api-key
    apiBase: https://api.ephone.ai/v1

  - name: Claude Opus（复杂任务）
    provider: anthropic
    model: claude-opus-4-5-20251101
    apiKey: sk-your-api-key
    apiBase: https://api.ephone.ai/anthropic

  - name: DeepSeek R1（推理）
    provider: openai
    model: deepseek-r1
    apiKey: sk-your-api-key
    apiBase: https://api.ephone.ai/v1
```

配置多个模型后，可在 Continue 面板左上角的下拉菜单中随时切换。

## 主要功能

| 功能 | 快捷键 | 说明 |
| - | - | - |
| 对话问答 | `Cmd/Ctrl + L` | 打开 AI 对话面板 |
| 内联编辑 | `Cmd/Ctrl + I` | 选中代码后直接编辑 |
| 代码补全 | 自动触发 | 在编辑器中实时补全 |
| 添加到上下文 | `Cmd/Ctrl + Shift + L` | 将选中代码加入对话上下文 |

## 代码自动补全配置

在 `config.yaml` 中添加 `tabAutocompleteModel` 配置，指定用于补全的模型（建议使用速度较快的轻量模型）：

```yaml theme={null}
tabAutocompleteModel:
  name: 自动补全
  provider: openai
  model: gpt-4o-mini
  apiKey: sk-your-api-key
  apiBase: https://api.ephone.ai/v1
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.