Module 2 — GitHub Copilot Features

Exam weight: 25–30% Study time: 75–90 minutes Lessons: IDE · CLI · Agent / Plan / MCP · Code Review & more · Org governance

Exam tactic. This is the largest single domain on GH-300 — roughly one in four exam questions comes from here. Spend the most study time on this module.

L01 — Copilot in the IDE

Officially supported IDEs

Inline suggestions

Inline suggestions are Copilot's foundational feature. As you type, Copilot proposes a continuation in grey text.

ActionShortcut (VS Code)
Accept suggestionTab
Dismiss suggestionEsc
Next suggestionAlt+] / Option+]
Previous suggestionAlt+[ / Option+[
Open all suggestionsCtrl+Enter

Next Edit Suggestions works in VS Code, Xcode and Eclipse — Copilot predicts the next likely edit location and offers a completion there. Accept with Tab like any other suggestion.

Content Exclusions (not .copilotignore)

Content Exclusions define which files or folders are kept out of Copilot's context. The official mechanism is configured at repository or organization level:

Exam note. The term .copilotignore appears in unofficial usage, but GitHub's official term and mechanism is Content Exclusions in settings. Content Exclusions stop automatic context collection — they do not stop a user from manually pasting content into a chat message.

Plan limitation. Content Exclusions are available only on Copilot Business and Enterprise. Free, Student, Pro and Pro+ users cannot configure file exclusions.

Copilot Chat in the IDE

Slash commands (VS Code):

CommandPurpose
/explainExplain selected code or the file
/fixSuggest a fix for selected code or an error
/testsGenerate tests for selected code
/docGenerate documentation for selected code
/newCreate a new file or project
/clearStart a new chat session

Chat participants (@): @workspace, @vscode, @terminal, @github. File and selection references with #: #file:path/to/file.ts, #selection.

L02 — GitHub Copilot CLI

GitHub Copilot CLI is a standalone AI agent in the terminal. It is not just a command suggester — it can read and write files, run shell commands, perform Git operations, and interact with GitHub.com (PRs, issues, Actions workflows) directly from the command line.

Preview status. Copilot CLI is currently in preview. Syntax and installation may change. Always follow the official installation guide.

Two usage modes

Interactive — start with the bare command:

copilot

Programmatic — pass the prompt directly:

copilot -p "Show me this week's commits and summarize them" --allow-tool='shell(git)'

Tool approval and security

OptionEffect
--allow-all-toolsAllow every tool without prompting
--allow-tool='shell(git)'Allow only git commands without prompting
--deny-tool='shell(rm)'Block rm entirely

Security. --allow-all-tools grants Copilot the same file and shell access as your user. Use with care — especially in automation.

CLI vs. IDE — when to use which

SituationRecommended tool
Actively writing codeIDE (inline + Chat)
Agent in the terminal without an IDECLI (interactive)
Automation or scriptingCLI (programmatic, -p)
Plan before executingCLI Plan Mode (Shift+Tab)
Reviewing code in a PRIDE or GitHub.com (Code Review)
Org administrationGitHub.com

L03 — Agent Mode, Plan Mode, and MCP

Agent Mode

Agent Mode runs Copilot autonomously through multi-step development tasks. Unlike regular Chat, Agent Mode can:

Agent sessions hold state and context for the duration of the task. Sub-agents let the main agent delegate parts of large tasks to specialized smaller agents to optimize context usage.

Chat modes — Ask, Plan, Agent

FeatureAskPlanAgent
File editsNo (manual)Yes (after approval)Yes (autonomous)
AutonomyNone — human-drivenLow — plan firstHigh — runs on its own
Terminal accessNoNoYes
Best forQuestions, snippetsComplex tasks before executionMulti-file tasks, iteration

Exam note. Older GH-300 materials may reference Edit Mode as a separate mode. In current Copilot UI (VS Code), Edit Mode is no longer a distinct selectable mode — its behavior has been folded into Agent Mode. If an exam question still distinguishes them, remember: Edit Mode = scoped, user picks files, diff view; Agent Mode = autonomous, Copilot picks files, can run terminal commands.

MCP — Model Context Protocol

MCP is an open standard that lets GitHub Copilot integrate with external tools and services:

For the exam, remember: MCP is the mechanism that enables external integrations in Agent Mode.

L04 — Code Review, Spaces, Spark, PR summaries, cloud agent, memory

Copilot Code Review

Automated code review on GitHub pull requests. Configured at the organization level (Settings → Copilot → Code Review). Review standards can be defined in instructions files (.github/copilot-instructions.md).

Copilot Spaces and GitHub Spark

Copilot Spaces organize relevant context (code, documentation, specifications) into a curated knowledge surface that Copilot draws on for a specific task. Spaces is a context-management tool, not a shared team workspace.

GitHub Spark (public preview) builds and deploys full-stack apps from natural language. Available only on Pro+ and Enterprise plans.

Pull Request Summaries

Copilot generates a natural-language summary of PR changes. Plan limitation: not available on Free — Student plan and above.

Instructions files and prompt files

Copilot cloud agent vs. Agent Mode in the IDE

FeatureAgent Mode (IDE)Copilot cloud agent (GitHub)
Where it runsLocal IDEGitHub.com (cloud)
TasksLocal code editsIssue → branch → PR end-to-end
TriggerDeveloper in the IDEIssue assignment or request on GitHub
OutputLocal code changePull Request for review

Exam note. Copilot cloud agent is not the same as Agent Mode in the IDE. Cloud agent runs autonomously on GitHub; Agent Mode runs locally under developer control.

Copilot Memory and Copilot in GitHub Desktop

Copilot Memory (public preview) lets Copilot infer and store useful repository facts automatically. Cloud agent and Code Review use this memory to improve quality on that repo over time.

Copilot in GitHub Desktop generates commit messages and PR descriptions automatically based on your changes.

Feature decision table

SituationFeature
Automated PR reviewCopilot Code Review
Curated team contextCopilot Spaces
Quick prototype or demo appGitHub Spark
PR description takes too longPR Summary
Consistent team behaviorInstructions + prompt files
Delegate implementation on GitHubCopilot cloud agent
Repo memory for the agentCopilot Memory
Auto commit messagesCopilot in GitHub Desktop

L05 — Organization governance

Org-level policies

GitHub.com → Organization Settings → Copilot:

SettingPurpose
Copilot Business / Enterprise activationEnable Copilot for the organization
Access controlChoose who gets a seat
IDE availabilityRestrict or allow specific IDEs
Copilot ChatEnable / disable
Copilot Code ReviewConfigure review policies
Content exclusionsOrg-level file exclusions
Suggestions for trainingAllow / block use of data for model training

Audit log events

Plan limitation. Audit logs are available on Pro+, Business and Enterprise. Free, Student and Pro do not get Copilot audit logs.

EventDescription
copilot.create_api_keyAPI key created
copilot.revoke_api_keyAPI key revoked
copilot.enable_copilotCopilot enabled for the org
copilot.disable_copilotCopilot disabled
copilot.add_memberUser added to a Copilot subscription
copilot.remove_memberUser removed from a Copilot subscription

REST API for seat management

GET    /orgs/{org}/copilot/billing                  - billing info
GET    /orgs/{org}/copilot/billing/seats            - per-seat info
POST   /orgs/{org}/copilot/billing/selected_users   - add users
DELETE /orgs/{org}/copilot/billing/selected_users   - remove users

Exam-ready checklist (M02)

Official source documents