Xcode AI Code Explanation

Tool Prompts

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}}
```

The user's request:

Please explain the above to me.

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.