GH-300 - Improve developer productivity with GitHub Copilot - Section 5.3

Accelerate learning and reduce context switching, and use Copilot to suggest security and performance improvements.

Use GitHub Copilot to accelerate learning a new language or codebase, reduce context switching by keeping the developer in the editor, and surface security and performance improvements. Treat security suggestions as prompts for review, not guarantees.

Reduce context switchingSecurity improvementsPerformance optimisationAccelerated learning

Practice question for this objective

Free sampleImprove developer productivity with GitHub Copilotmedium

A developer keeps breaking flow to switch from the editor to a browser and search the project's framework documentation for the right API call. They want to keep that lookup inside their current file without leaving the editor. Which Copilot surface most directly reduces this context switching?

  • AOpen the GitHub web interface in a browser tab and read the repository wiki there, so the answer sits beside the code that the developer is currently editing in the IDE.
  • BAsk Copilot Chat about the API inside the editor, since it answers from the editor and keeps the developer in their current file rather than sending them to a browser. Correct
  • CRun GitHub Copilot CLI in a separate terminal pane to ask about the API, then copy the explanation back into the file the developer is working in.
  • DWait for inline ghost-text completions to surface the API call while typing, on the basis that completions remove any need to ask a question about the framework at all.
Use Copilot Chat in the IDE to answer code questions in context and reduce browser-based context switching. Copilot Chat runs inside the editor and can answer questions about the code in front of the developer, so it keeps the lookup in the current file and removes the editor-to-browser round trip, which inline completions, the CLI in a separate pane, or a browser wiki do not.

Why A is wrong: A browser wiki keeps a reference handy but is still a separate window, so it does not remove the editor-to-browser switch that the developer is trying to avoid.

Why B is correct: Copilot Chat runs inside the IDE and answers questions about code in context, so the developer gets the lookup without leaving the editor, directly cutting context switching.

Why C is wrong: GitHub Copilot CLI helps with shell tasks but lives in the terminal, so copying answers back into the editor reintroduces the switching the developer wants to stop.

Why D is wrong: Inline completions suggest code as you type but cannot answer a what-does-this-do question, so they do not provide the explanation the developer is looking for.

See more GH-300 practice questions, answers explained.

More in this domain

Back to all Improve developer productivity with GitHub Copilot objectives, or the GH-300 cert hub.

Examworthy is not affiliated with or endorsed by GitHub. Original, blueprint-aligned practice material only.