All projects
VS Code extension

LocalChat

Explain selected code, draft a doc comment, or turn staged changes into a commit subject on your Mac.

VS Code 1.104 or later and macOS 26 or later on an Apple Intelligence–eligible Mac with the model downloaded.

LocalChat explains a selected TypeScript function that doubles a retry delay and caps it at five seconds.

Explain a selection

Select a function in the editor, open the Local Chat sidebar, and choose Explain Selection. Ask a follow-up in the same conversation.

Document a function

Select the function, right-click, and choose Document Selection. Review the suggested doc comment before copying it into your code.

Draft a commit subject

Stage the changes in Source Control, then choose Draft Commit Message. Review the suggested subject against the staged diff before committing.

Setup and support

Enable Apple Intelligence in System Settings and let the model download. The sidebar can then work offline. Read the user guide, browse the source code, or report an issue.