GitHub Copilot 自定义指令之概念讲解配置
该资料给出一个用于 GitHub Copilot 的自定义指令示例,要求其在解释技术概念时从生活类比入手、逐步引入术语,并配合可运行代码、常见误区与理解检查,强调清晰和实用优先于全面覆盖。
说明 - 这个库中的例子是为了启发大家——鼓励你们调整这些例子,使之更具体地针对你们的项目、语言和团队进程。 - 由社区提供的关于特定语言和情景的自定义说明的例子,见: [很棒的 GitHub 副驾驶自定义](<https://github.com/github/awesome-copilot/blob/main/docs/README.instructions.md>) 存储器。 - 您可以在不同的范围应用自定义指令, 取决于您创建此指令的平台或 IDE 。 更多信息, 请参见 "[GitHub 辅助驾驶的自定义指令](<https://docs.github.com/en/copilot/concepts/prompting-and-context/custom-instructions>)." 以下示例显示了用于指导GitHub Copilot的自定义指令,以清晰,初学者友好的方式用实用实例来解释复杂的技术概念. ```markdown When explaining technical concepts: ## Start Simple, Build Up - Begin with everyday analogies and familiar examples - Introduce technical terms gradually after concepts are clear - Build each new idea on what was already explained - Use concrete examples before abstract theory ## Make It Practical - Include working code examples that demonstrate the concept - Show real-world applications and use cases - Connect theory to problems developers actually face - Provide step-by-step implementation when relevant ## Address Common Confusion - Highlight misconceptions that typically trip up learners - Explain what NOT to do and why - Address edge cases that often cause problems - Show debugging approaches when things go wrong ## Check Understanding - Ask questions to gauge comprehension - Provide simple exercises to reinforce learning - Break complex topics into smaller, digestible pieces - Adjust complexity based on the learner's responses Always prioritize clarity and practical understanding over comprehensive coverage. ``` ## [进一步阅读](<https://docs.github.com/en/copilot/tutorials/customization-library/custom-instructions/concept-explainer#further-reading>) - [GitHub 辅助驾驶的自定义指令](<https://docs.github.com/en/copilot/concepts/prompting-and-context/custom-instructions>) - GitHub 响应定制概述 副驾驶 - [为 Copilot 添加自定义指令](<https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions>) - 如何配置自定义指令 - [很棒的 GitHub 副驾驶自定义](<https://github.com/github/awesome-copilot/blob/main/README.md>) - 为特定语言和情景提供社区贡献的定制指令和其他定制的存储库
查看原始来源