Copilot in the IDE

This page covers the IDE half of Domain 2, Use GitHub Copilot features. Domain 2 is the largest GH-300 domain at 25–30%, so expect detail questions about inline suggestions, chat, CLI, modes, and model selection.

Inline completions, next edit suggestions, and FIM

Copilot can assist directly inside the editor. The exam likes three distinct ideas: inline suggestions, next edit suggestions, and Fill-in-the-Middle (FIM).

FeatureWhat it doesExam cue
Inline suggestionsComplete code at the cursor. The IDE renders the suggestion as ghost text."Finish this line", "complete this function", "accept the ghost text".
Next edit suggestionsPredict the location of the developer's next likely edit. This is separate from inline completion."Where should I edit next?", "predict the next change location".
Fill-in-the-Middle (FIM)Uses code before and after the cursor during preprocessing so the model can fill the gap.The phrase FIM or "before and after the cursor".
Trap: ghost text is not a separate feature

Ghost text is how the IDE displays an inline suggestion. It is not a third completion feature and not the same as next edit suggestions.

What context is gathered

The exam-source data flow says Copilot gathers code before and after the cursor, filename and file type, adjacent open tabs, project structure and file paths, programming languages and frameworks, and FIM preprocessing. The prompt is transmitted over HTTPS.

Cross-link: data flow belongs to Domain 3

The seven-step prompt flow is covered in data handling and flow. For this page, know that FIM is a named, high-value term and that inline suggestions are not the same as next edit suggestions.

Ask mode vs. Edit mode vs. Agent mode

This is one of the most-tested distinctions on GH-300. The safest way to answer is to ask: who chooses the scope, and how much authority does Copilot have?

Exam-source vs. current product: Copilot Edits was renamed

The official August 2026 study guide still says "Copilot Edits." Current product documentation uses Edit mode. Treat "Copilot Edits" as the old name and Edit mode as the current name.

ModeScopeWhat Copilot can doWhat Copilot cannot do
Ask modeThe user asks a question. The user chooses what to do with the answer.Explain code, answer questions, suggest commands, describe changes, and reason about context.It does not directly rewrite a chosen set of files as its main purpose.
Edit modeThe user chooses the files or scope to edit.Propose and apply edits inside that chosen scope. Best when the developer knows where the change belongs.It should not roam the repository deciding a broad implementation plan on its own.
Agent modeCopilot can determine more of the work plan and affected files inside the IDE workflow.Carry out multi-step coding work, use tools where supported, and iterate more autonomously.It is not the same as the Copilot cloud agent that runs on GitHub and opens a pull request.

Mode memory hooks

Ask mode: "tell me." Use it when the developer wants explanation, ideas, or help understanding code.

Edit mode: "change these files." Use it when the developer knows the target scope and wants Copilot to edit within it.

Agent mode: "take on this task." Use it when the workflow needs multi-step changes and Copilot can decide more of the implementation path.

Trap: IDE Agent mode is not the cloud agent

Agent mode runs in the IDE context. The Copilot cloud agent is assigned an issue, works in its own environment, and opens a pull request. They are different features.

Support details from the brief

Edit mode is supported in VS Code and JetBrains. It is not supported in Visual Studio, Eclipse, or Xcode. Agent mode is not available in NeoVim.

Chat in the IDE, GitHub.com, mobile, and CLI

Copilot Chat is an assistive feature across the website, mobile app, IDEs, and Windows Terminal. GH-300 also calls out Copilot CLI as its own objective area.

Chat in the IDE

IDE chat can use slash commands, chat participants, and chat variables. Read those as ways to shape the request and context. A slash command expresses an action. A participant routes the request to a specialized context. A variable includes named context.

Chat toolPlain meaningHow it appears in exam wording
Slash commandsShort commands that tell chat what kind of task to perform."Use a command to explain, test, fix, or perform a common chat action."
Chat participantsNamed participants that bring a particular capability or context into the conversation."Route the question to a participant for workspace, terminal, or other specialized help."
Chat variablesNamed references that add context to the prompt."Include the current selection, file, workspace, or other context variable."
Trap: do not treat chat as automatically authoritative

Chat can explain and suggest. The responsible workflow still requires review, tests, and security scanning for code changes. See verification and human oversight.

Chat on GitHub.com and in mobile

Copilot Chat is available on the GitHub website and in GitHub Mobile. The brief also notes that content exclusions for the GitHub website and GitHub Mobile are in public preview. Do not assume every IDE support detail also applies to GitHub.com or mobile.

GitHub Copilot CLI

GitHub Copilot CLI is now standalone. The old gh copilot CLI extension was renamed history; current wording is GitHub Copilot CLI. The CLI is an agentic feature and has its own objective, 2.2.

The brief confirms that Copilot CLI has a plan mode, that Shift+Tab cycles modes, that it runs interactively or programmatically with -p or --prompt, and that it runs on Linux, macOS, and Windows, including PowerShell and WSL.

What CLI questions usually test

Expect benefits, installation steps at a high level, interactive sessions, programmatic prompts, script generation, file management, and plan mode. Do not answer with the retired extension model unless the question explicitly asks for history.

SurfaceBest useTrap
IDE chatExplain code, discuss changes, use slash commands, participants, and variables with local context.Confusing chat with inline ghost text.
GitHub.com chatAsk questions and use Copilot on the GitHub website.Assuming local editor support details are identical.
GitHub MobileUse Copilot on mobile.Forgetting that retention and policy details may differ from code-editor prompts.
GitHub Copilot CLIWork interactively or programmatically from the terminal.Calling it the old extension instead of the standalone CLI.

Model selection without version numbers

GH-300 can test model-selection concepts, but this site never names specific model versions. The brief explicitly bans questions and guide claims that depend on version numbers because availability changes too fast.

Hard rule: name zero specific model versions

Know the concepts, not the model list. Inline suggestions, next edit suggestions, and Chat are three independent model selections. Changing one does not change the others.

ConceptWhat to knowExam trap
Independent selectionsInline suggestions, next edit suggestions, and Chat each have their own model selection.Assuming one picker changes all three.
Auto model selectionAuto model selection is a distinct concept and is the only option on Free and Student.Assuming Free or Student can choose from the same model picker as paid tiers.
LTS fallbackA long-term support model is used if no other model is available.Picking a specific version number instead of the fallback concept.
Content filtersContent filters apply regardless of which model is chosen, on both input prompts and output completions.Thinking a model switch bypasses filters or public-code matching policy.
Data policyChanging the AI model does not change the data collection and usage policy.Assuming a model provider change creates a different data policy.
Plan gatingModel choices depend on plan and organization settings. Business and Enterprise model switching requires the org to enable editor preview features.Ignoring plan and policy controls.

Safe wording for model questions

Use durable words: model picker, auto model selection, independent selections, long-term support fallback, content filters, plan gating, and data policy. Avoid any answer that turns on a specific model version.

BYOK facts from the brief

Bring your own key exists. It is generally available in Visual Studio, preview in VS Code, JetBrains, Eclipse, and Xcode, and not supported in NeoVim. The brief names providers, but exam prep should still avoid specific model version numbers.

Trap: filters follow the request

Content filters apply no matter which model is selected. Suggestions matching public code also applies irrespective of model selection when that policy is enabled.

Plan and policy gates

Model access is not only a user preference. The brief ties model selection to plan and organization controls. Free and Student use auto model selection only. Business and Enterprise model switching requires the organization to enable editor preview features. If no other model is available, Copilot uses a long-term support model.

Do not confuse model choice with privacy choice. The brief is explicit: changing the AI model does not change the data collection and usage policy. Content filters still apply on input prompts and output completions, and public-code matching policy still applies when enabled.

If the question asks...Think...Do not answer...
"A Free or Student user wants to pick a model."Auto model selection only.A named model version.
"Changing the chat model should change data use."Data collection and usage policy does not change.That model choice overrides data policy.
"One model picker should control all IDE experiences."Inline suggestions, next edit suggestions, and Chat are independent selections.One global picker for all three.
"A filter should disappear after switching models."Filters apply regardless of model.Use a model switch to bypass safeguards.

The night-before cheat sheet

Completions

Inline suggestions complete at the cursor and appear as ghost text. Next edit suggestions predict the next edit location. FIM uses code before and after the cursor.

Modes

Ask mode answers. Edit mode changes the user-selected scope. Agent mode takes on multi-step work in the IDE. The cloud agent is different and runs on GitHub.

Chat and CLI

IDE chat uses slash commands, chat participants, and chat variables. GitHub Copilot CLI is standalone, supports plan mode, and can run interactively or with -p/--prompt.

Models

Do not memorize version numbers. Inline suggestions, next edit suggestions, and Chat are independent selections. Auto is the only option on Free and Student. Filters and data policy do not change because the model changes.