> For the complete documentation index, see [llms.txt](https://documentation.ocoolai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ocoolai.com/app_guides/plugins/vscode-cha-jian-aide-pei-zhi-jiao-cheng.md).

# VSCode插件Aide配置教程

## 插件安装

* 打开VSCode
* 点击侧栏`扩展`icon
* 搜索`Aide`点击安装

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide1.png" alt="" width="563">

## 插件配置

* 安装完成后点击`设置`按钮，选择`扩展设置`

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide2.png" alt="" width="563">

* 进入设置页面后滑到页面最下方
* OpenAI Base URL务必填`https://one.ocoolai.com/v1`
* OpenAI Key填写你在ocoolAPI站点生成的秘钥，如果没有或者不会生成可以查看[获取秘钥教程](https://docs.ooo.cool/#keyhuoqu)
* OpenAI Model填本站任意你想用的模型名，不知道的话可在价格页面或者API站的[个人中心](https://one.ocoolai.com/account/profile)复制可用的模型粘贴到`自定义模型`输入框中

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide3.png" alt="" width="563">

## 使用示例

* 之后回到你的代码编辑页面，点击右上角书本的icon即可开始解释你的代码，以下为示例

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide4.png" alt="" width="563">

<img src="https://vip.123pan.cn/1821083851/ocoolai/pic/aide5.png" alt="" width="563">


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.ocoolai.com/app_guides/plugins/vscode-cha-jian-aide-pei-zhi-jiao-cheng.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
