Xcode AI Documentation Generation
System prompt for Apple's Xcode AI coding assistant.
Fill in the blanks0/3
Fill these in and the prompt updates as you type. Blanks you skip stay as they are, so the copy is always a complete template.
Prompt
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.Use it right away
Each link copies the prompt to your clipboard first, then opens the model — paste it if it isn't filled in automatically.