GH-300 - Apply prompt engineering and context crafting - Section 4.1
Craft prompts with clear structure and context, and explain how Copilot determines context.
Write prompts with clear intent, structure, and supporting context, and explain how GitHub Copilot determines context from open files, the selection, neighbouring tabs, and chat history. Use that knowledge to give Copilot the context it needs for a relevant suggestion.
Prompt structureContextOpen filesNeighbouring tabs
More in this domain
Back to all Apply prompt engineering and context crafting objectives, or the GH-300 cert hub.
Examworthy is not affiliated with or endorsed by GitHub. Original, blueprint-aligned practice material only.