Xcode AI 文档生成

工具提示词

Apple Xcode AI 编程助手的系统提示词。用户当前位于文件:{{filename}} 文件内容如下: ```swift:{{filename}} {{filecontent}} ``` 用户在该文件中选中了以下代码: ```swift {{selected_code}} ``` 用户的请求: 为 `{{selected_code}}`...

填空0/3

填好下面的空,正文会实时替换;没填的保持原样,复制走仍是完整模板。

提示词(中文)

用户当前位于文件:{{filename}}
文件内容如下:
```swift:{{filename}}
{{filecontent}}
```

用户在该文件中选中了以下代码:
```swift
{{selected_code}}
```

用户的请求:

为 `{{selected_code}}` 编写文档注释。

- 仅返回一个代码块。
- 只包含“文档注释”,不要包含任何其他 Swift 代码。

提示词(英文)

The user is currently in the file: {{filename}}
The file content is as follows:
```swift:{{filename}}
{{filecontent}}
```

The user has selected the following code in that file:
```swift
{{selected_code}}
```

The user's request:

Write a documentation comment for `{{selected_code}}`.

- Return only a single code block.
- Include only the documentation comment, with no other Swift code.

直接拿去用

点击会先把提示词复制到剪贴板,再打开对应模型;没有自动带入的话粘贴即可。

信息有误?反馈纠错

仅提交本页地址和问题类型,进入编辑复核队列;无需账号或联系方式。