GitHub Copilot 对话助手手册
查找与 GitHub Copilot Chat 配合使用的提示示例。
聚焦



探索 31 个示例
创建模板
Copilot 对话助手 可帮助你创建模板,以便简化工作流并确保项目间的一致性。- Communicate effectively
- Author and optimize with Copilot
- Simple
提取信息
GitHub 中的 Copilot 对话助手可以帮助从议题和讨论中提取关键信息。- Communicate effectively
- Author and optimize with Copilot
- Simple
合成研究
Copilot 对话助手可帮助你将来自多个来源的研究结果和见解合成为一份连贯的摘要。- Communicate effectively
- Author and optimize with Copilot
- Simple
调试无效的 JSON
Copilot 对话助手 能够识别并解决 JSON 数据中的语法错误或结构问题。- Debugging code
- Author and optimize with Copilot
- Intermediate
处理 API 速率限制
Copilot 对话助手 能够通过建议可检测并实现重试逻辑的代码,帮助处理 API 速率限制。- Debugging code
- Author and optimize with Copilot
- Intermediate
探索潜在的功能实现
Copilot 对话助手 可以帮助探索实现单一功能的不同方法。- Functionality analysis
- Author and optimize with Copilot
- Intermediate
分析和采纳用户反馈
Copilot 对话助手 可以加强将用户反馈纳入项目的过程。- Functionality analysis
- Author and optimize with Copilot
- Intermediate
修复 lint 错误
Copilot 对话助手 可以建议修复由代码 linter 标识的问题的方法。- Refactoring code
- Author and optimize with Copilot
- Intermediate
重构数据访问层
Copilot 对话助手 可以建议将数据访问代码与业务逻辑分离的方法,从而使应用程序更易于维护和缩放。- Refactoring code
- Author and optimize with Copilot
- Advanced
从 UI 组件分离业务逻辑
Copilot 对话助手 可帮助你将业务逻辑与用户界面代码分离,从而更易于维护和缩放你的应用程序。- Refactoring code
- Author and optimize with Copilot
- Advanced
处理横切关注点
Copilot 对话助手 可帮助避免与代码所在方法或函数的核心关注点以外的关注点相关的代码。- Refactoring code
- Author and optimize with Copilot
- Intermediate
简化复杂的继承层次结构
Copilot 对话助手 可帮助你重构代码,以避免具有多层继承的类。- Refactoring code
- Author and optimize with Copilot
- Intermediate
修复数据库死锁或数据完整性议题
Copilot 对话助手 可帮助你避免导致数据库操作缓慢或被阻止的代码,或者缺少数据或数据不正确的表。- Refactoring code
- Author and optimize with Copilot
- Advanced
将代码转换为其他编程语言
Copilot 对话助手 可以帮助你重写代码以执行相同的作,但使用不同的编程语言。- Refactoring code
- Author and optimize with Copilot
- Simple
Creating issues
Copilot 对话助手 can help you quickly create issues without filling out every field manually.- Documenting code
- Author and optimize with Copilot
- Simple
解释复杂算法或逻辑
Copilot 对话助手 可以帮助为复杂算法或逻辑添加清晰简洁的文档。- Documenting code
- Author and optimize with Copilot
- Intermediate
创建模拟对象来使层抽象化
Copilot 对话助手 可以帮助创建可用于单元测试的模拟对象。- Testing code
- Author and optimize with Copilot
- Intermediate
管理依赖项更新
Copilot 对话助手 可以帮助你设置 Dependabot 以简化依赖项更新。- Security analysis
- Author and optimize with Copilot
- Simple
在代码中查找现有漏洞
Copilot Chat 可以帮助查找代码中的常见漏洞并提供修复建议。- Security analysis
- Author and optimize with Copilot
- Intermediate