-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b351230
commit 7e13674
Showing
20 changed files
with
235 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"publisher": "nicepkg", | ||
"name": "aide-pro", | ||
"displayName": "Aide", | ||
"description": "Master Any Code: One-Click Comments and Language Conversion. 掌握任何屎山代码:一键注释和语言转换。💪", | ||
"description": "Conquer Any Code in VSCode: One-Click Comments, Conversions, UI-to-Code, and AI Batch Processing! 在 VSCode 中征服任何代码:一键注释、转换、UI 图生成代码、AI 批量处理!💪", | ||
"version": "1.16.0", | ||
"private": true, | ||
"packageManager": "[email protected]", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# aide.apiConcurrency | ||
|
||
This configuration allows you to customize the AI request concurrency, which is `1` by default. It is recommended not to change it when using local models. | ||
|
||
- **Default Value:** | ||
|
||
```json | ||
{ | ||
"aide.apiConcurrency": 1 | ||
} | ||
``` | ||
|
||
::: tip | ||
You can increase this number to speed up the [`AI Batch Processing`](../features/batch-processor.md). It is not recommended to exceed `3`. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# AI Batch Processor | ||
|
||
Command Name: `aide.batchProcessor` | ||
|
||
Use AI to process the code of multiple selected files according to your needs. | ||
|
||
**What it can do:** | ||
|
||
- Batch add detailed comments | ||
- Batch optimize code | ||
- Batch convert `vue2` code to `vue3` code | ||
- Batch convert `vue` code to `react` code | ||
- Batch convert `react` code to `flutter` code | ||
- Batch convert `react class component` code to `react function component` code | ||
- Batch convert `rust` code to `js` code | ||
- Batch convert `json` code to `yaml` code | ||
- Use your imagination... | ||
|
||
**What it cannot do:** | ||
|
||
- Specific business requirements | ||
- Split one file into multiple files | ||
|
||
**Rest assured! Processing will not modify the `source file`:** | ||
|
||
- It will generate an additional `file copy`. For example, `app/index.py` -> `app/index.py.aide.py`. | ||
- You can click the `file copy`, review it, and then decide whether to replace the `source file`. | ||
- When opening the `file copy`, the `source file` will be opened simultaneously, allowing you to compare at any time. | ||
- You can click the `Replace Original` button on the first line of the `file copy` to replace the `source file`. | ||
|
||
**Usage:** | ||
|
||
- Select files or folders in the file explorer. (Multi-select: hold `Ctrl` or `Cmd` and click on files or folders) | ||
- Right-click and select `✨ Aide: AI Batch Processor`. | ||
- Enter your code processing requirements. | ||
|
||
::: warning | ||
|
||
This feature requires the AI model to support the `function_call` feature. | ||
|
||
::: | ||
|
||
<Video src="/videos/aide-batch-processor.mp4"/> | ||
|
||
::: tip | ||
|
||
1. For long file codes, there may be issues with output interruption. Currently, there is no good solution. | ||
2. Carefully review the processed files to ensure they are correct before replacing the source files. Never assume that AI-processed code is error-free. | ||
|
||
::: | ||
|
||
**Related Configuration:** | ||
|
||
- You can customize the AI request concurrency by modifying the [`aide.apiConcurrency`](../configuration/api-concurrency.md) configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# aide.apiConcurrency | ||
|
||
此配置允许您自定义 AI 请求并发数,默认是 `1`,用本地模型的最好不要改。 | ||
|
||
- **默认值:** | ||
|
||
```json | ||
{ | ||
"aide.apiConcurrency": 1 | ||
} | ||
``` | ||
|
||
::: tip 提示 | ||
你可以通过改大这个数目来提升 [`AI 批量处理`](../features/batch-processor.md) 的速度。不建议超过 `3`。 | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
|
||
目前支持以下场景: | ||
|
||
- [`智能粘贴`](../features//smart-paste.md) | ||
- [`智能粘贴`](../features/smart-paste.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.