Skip to main content
Skip to content

Prompting and context for GitHub Copilot

Get more relevant responses from GitHub Copilot by writing effective prompts and providing useful context.

Prompt engineering for GitHub Copilot

Follow these strategies to improve your Copilot results.

Managing context for GitHub Copilot

Understand how Copilot manages conversation context, what happens during long sessions, and how to stay in control of your context window.

Custom instructions for GitHub Copilot

Customize GitHub Copilot responses to your preferences, project conventions, and organization requirements.

Prompt files for GitHub Copilot

Save task-specific instructions and context in reusable Markdown prompt files for individual Copilot interactions.

Indexing repositories for GitHub Copilot

Copilot improves responses by indexing your repositories.

About GitHub Copilot Spaces

Understand how organizing and sharing context with Copilot Spaces can improve your Copilot Chat in GitHub results and help your collaborators.

About GitHub Copilot Memory

Copilot Memory helps Copilot become more effective over time by remembering facts about your repositories and your personal coding preferences.