feat: improve explain workflow guide.

This commit is contained in:
Rankin Zheng 2024-04-02 10:38:39 +08:00
parent 2272ab55bd
commit 2eb2d8abb0

View File

@ -1,15 +1,11 @@
需要输入参数,使用指南如下:
### 操作指南
## 1.选中代码
生成代码解释,请按照如下步骤操作:
1. 选中行间代码。
2. 输入\/explain回车发送或右键点击**DevChat: Generate Explain**按钮。
3. 开始生成代码解释,等待生成结束。
选中你需要解释的代码,右键唤出菜单,点击"DevChat: Generate Explain",向 AI 助手发起解释请求。或者再 DevChat 聊天窗口,键入/explain 直接发起代码解释工作流。
![图片](https://deploy-script.merico.cn/devchat/workflow/explain_1.png)
![图片](https://deploy-script.merico.cn/devchat/workflow/explain_2.png)
如果你是希望解释整个函数还可以点击函数头部的“explain”按钮发起请求。
![图片](https://deploy-script.merico.cn/devchat/workflow/explain_3.png)
如图所示:
## 2.开始解释
此时,你只需要等待结果即可。
![图片](https://deploy-script.merico.cn/devchat/workflow/explain_4.gif)
![图片](https://deploy-script.merico.cn/devchat/workflow/readme_explain.gif)