Help

From setup to your first generated comment.

Comment Writer connects the model you choose to an Xcode source editor command.

1. Enable the Xcode extension

Open Comment Writer and choose the hammer button. Open Xcode Source Editor Extensions in System Settings, then enable Comment Writer.

2. Connect an AI service

Choose OpenAI, Anthropic Claude, Ollama, or Custom API. Add the required key or server address, then fetch the models available from that service.

Choose a model and select Use this service. The matching provider card will show an Active chip.

3. Generate documentation

In Xcode, select a Swift declaration. Choose Editor › Code documentation › Analyse and Generate. The generated DocC comment is inserted above the selection.

Ollama cannot connect

Confirm Ollama is running and the server address is correct. The default address is http://localhost:11434. For another Mac, use its private network address and make sure Ollama accepts network connections.

The command is unavailable

Select at least one complete line of Swift source. If the command still does not appear, disable and re-enable Comment Writer in System Settings, then restart Xcode.