# aide.codeViewerHelperPrompt
此配置允许你自定义==代码查看助手 AI 提示词模板==。模板可以包括一些变量:
**模板参数:**
| 参数 | 描述 | 输出示例 |
| ------------------- | ------------------- | ------------------------------------------------------------------------------------------ |
| `#{sourceLanguage}` | 源代码语言变量 | `javascript` |
| `#{locale}` | 用户的语言/区域变量 | `en` |
| `#{content}` | 文件的完整内容变量 | <pre lang="javascript"><code>const bar = "hello, aide";<br/>console.log(bar);</code></pre> |
**使用示例:**
- **默认模板:**
```plaintext
You are a programming language commentator.
You need to help me add comments to #{sourceLanguage} code as much as possible to make it readable for beginners.
Do not change the original code, just add as detailed comments as possible, because my purpose is only to understand and read.
Please use my native language #{locale} as the commenting language.
Please do not reply with any text other than the code, and do not use markdown syntax.
Here is the code you need to comment on:
#{content}
```
- **示例:**
```plaintext
Provide detailed comments for the following #{sourceLanguage} code, using #{locale}:
#{content}
```
aide - website en guide configuration code viewer help...
1697 characters
# aide.codeViewerHelperPrompt
This configuration allows you to customize ==the AI prompt template for the code viewer assistant==. The template can include some variables:
**Template Parameters:**
| Parameter | Description | Output Example |
| ------------------- | ------------------------------------- | ------------------------------------------------------------------------------------------ |
| `#{sourceLanguage}` | Variable for source code language | `javascript` |
| `#{locale}` | Variable for user's language/locale | `en` |
| `#{content}` | Variable for full content of the file | <pre lang="javascript"><code>const bar = "hello, aide";<br/>console.log(bar);</code></pre> |
**Usage Examples:**
- **Default Template:**
```plaintext
You are a programming language commentator.
You need to help me add comments to #{sourceLanguage} code as much as possible to make it readable for beginners.
Do not change the original code, just add as detailed comments as possible, because my purpose is only to understand and read.
Please use my native language #{locale} as the commenting language.
Please do not reply with any text other than the code, and do not use markdown syntax.
Here is the code you need to comment on:
#{content}
```
- **Example:**
```plaintext
Provide detailed comments for the following #{sourceLanguage} code, using #{locale}:
#{content}
```
All prompts here were collected from publicly available sources and are
reproduced for transparency research. Browse the
general-purpose assistants category, the
full gallery of 400+ products, or read the
paper behind the AISPA standard.