{"meta":{"title":"文档编码","intro":"了解如何使用 GitHub Copilot Chat 为代码编写文档。","product":"GitHub Copilot","breadcrumbs":[{"href":"/zh/copilot","title":"GitHub Copilot"},{"href":"/zh/copilot/tutorials","title":"教程"},{"href":"/zh/copilot/tutorials/copilot-cookbook","title":"GitHub Copilot 指南"},{"href":"/zh/copilot/tutorials/copilot-cookbook/document-code","title":"文档编码"}],"documentType":"subcategory"},"body":"# 文档编码\n\n了解如何使用 GitHub Copilot Chat 为代码编写文档。\n\n## Links\n\n* [在不中断工作流程的情况下提交问题](/zh/copilot/tutorials/copilot-cookbook/document-code/filing-issues-without-breaking-your-flow)\n\n  当你在处理任务时注意到某个问题，可以使用 Copilot CLI 创建一个包含代码上下文、关联 PR 和标签的 GitHub issue，然后继续手头的工作。\n\n* [为旧代码编写文档](/zh/copilot/tutorials/copilot-cookbook/document-code/document-legacy-code)\n\n  Copilot Chat 有助于记录旧代码。\n\n* [解释旧代码](/zh/copilot/tutorials/copilot-cookbook/document-code/explain-legacy-code)\n\n  Copilot Chat 可以帮助解释不熟悉的代码。\n\n* [解释复杂算法或逻辑](/zh/copilot/tutorials/copilot-cookbook/document-code/explain-complex-logic)\n\n  Copilot Chat 可以帮助添加有关复杂算法或逻辑的清晰简洁文档。\n\n* [同步文档以适应代码更改](/zh/copilot/tutorials/copilot-cookbook/document-code/sync-documentation)\n\n  Copilot Chat 可以帮助保持代码文档为最新状态。\n\n* [撰写讨论或博客文章](/zh/copilot/tutorials/copilot-cookbook/document-code/write-discussions-or-blog-posts)\n\n  Copilot Chat 可以帮助你生成想法、大纲或草稿讨论或博客文章。"}