Code completion
Get inline suggestions for functions, tests, repetitive code, and documentation while you type.
Learn moreYour guide to GitHub Copilot
A friendly, practical guide to GitHub Copilot features, responsible workflows, and fresh updates from official GitHub sources.
Build the feature and add tests
↑One assistant, many workflows
From your first idea to a reviewed pull request, Copilot supports the software development lifecycle while keeping you in control.
Get inline suggestions for functions, tests, repetitive code, and documentation while you type.
Learn moreAsk questions, explain unfamiliar code, debug failures, and explore implementation options in natural language.
Learn moreDelegate multi-step coding work that can inspect a project, edit files, and iterate on the result.
Learn moreAssign development tasks from GitHub and let Copilot create a pull request for human review.
Learn moreDraft descriptions, summarize changes, and support code review directly in the GitHub workflow.
Learn moreUse Copilot from the terminal to understand repositories, edit code, and complete development tasks.
Learn moreGive Copilot repository-specific context, conventions, and guidance for more relevant responses.
Learn moreConnect Copilot to external tools and context sources to support specialized workflows.
Learn moreA better way to collaborate
Great results come from a clear partnership: you set direction and constraints, Copilot helps explore and execute, and you verify the final work.
Describe the goal and context
Collaborate through focused iterations
Validate before you ship
Work smarter and responsibly
Describe the outcome, relevant constraints, and what a successful answer should contain.
Open relevant files, name the framework, and include examples or existing project conventions.
Ask for focused changes and verify each meaningful stage instead of sending one oversized prompt.
Treat suggestions as a draft. Check correctness, security, licensing, tests, and maintainability.
Use Copilot to accelerate decisions, not replace engineering judgment or required approvals.
Do not place secrets or confidential information in prompts, source files, or generated examples.
Get better results, faster
These practical habits keep context focused, make workflows reusable, and help you stay in control of the result.
Browse community-created agents, instructions, skills, hooks, workflows, and plugins. Inspect each customization before installing it.
ExploreMention the relevant file with @ instead of making Copilot search the whole repository. Add only the context needed for the task.
ExploreState the goal, constraints, required output, and validation criteria. Clear acceptance conditions reduce unnecessary iterations.
ExploreUse focused skills for recurring workflows so Copilot receives proven instructions and supporting resources only when needed.
ExploreUse research, review, exploration, or task-focused agents when specialist context will produce a better result than one general conversation.
ExploreUse /ask for a quick side question that should not become part of the main conversation history.
ExploreReview the diff, run the smallest relevant tests, and use code or security review for changes where mistakes carry more risk.
ExploreStart Copilot in trusted directories and approve tools deliberately. Avoid broad permissions for destructive commands or unknown code.
ExploreSpend smarter with Copilot
Simple principle: use the least expensive capability that can complete the task well, then measure the result.
Let Copilot route routine work to an efficient model instead of manually choosing a costly reasoning model for every task.
Official guidanceUse lighter models for explanations, small edits, and boilerplate. Reserve advanced reasoning models for genuinely complex problems.
Official guidanceShare only relevant files, requirements, and examples. Smaller context reduces token usage and helps Copilot reach the answer faster.
Official guidanceUse code completions and next edit suggestions for everyday coding when they fit; these features do not consume GitHub AI Credits.
Official guidanceUse /compact when a valuable Copilot CLI session becomes long. It summarizes the conversation so you can continue with less context.
Official guidanceUse /research to gather evidence and /plan to agree on the approach before coding. Clear decisions reduce failed attempts and expensive rework.
Official guidanceMake .github/copilot-instructions.md describe the real stack, layout, commands, and conventions. Remove vague or outdated guidance that causes repeated exploration.
Official guidanceCost behavior depends on your Copilot plan, enabled features, models, and organization settings. Review current GitHub billing documentation before making purchasing decisions.
Live from official sources
Keep exploring
Visit the official GitHub Copilot documentation for setup instructions, detailed concepts, and guides.