Chat slash command: generate documentation for selected code
Type /doc to add JSDoc, docstrings, or inline comments to your selected code. Copilot describes parameters, return values, and behavior. Useful for quickly documenting existing code before a PR review.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.