Use GitHub Copilot Features

This skill area accounts for 25–30% of the exam — the largest weighted section. It covers enabling Copilot in IDEs, all trigger modes (inline, chat, Plan Mode), the full CLI, and file exclusions. Master every detail here.

Disclaimer: These are personal study notes. Always verify against the official study guide.

GitHub Copilot in the IDE

Supported IDEs

GitHub Copilot works across a wide range of editors. Feature availability may vary — VS Code typically receives new features first.

IDE / EditorNotes
Visual Studio CodeBroadest feature set; first to receive new features; supports model selection for inline suggestions
Visual Studio 2022 (17.8+)Includes comment suggestions; uses #solution chat variable to reference entire solution
JetBrains IDEsIntelliJ IDEA, PyCharm, Android Studio, CLion, GoLand, PhpStorm, Rider, RubyMine, WebStorm, and more
Neovim / VimCore inline suggestions; minimal UI
EclipseCore functionality
Azure Data StudioSQL-focused workflows
XcodeRequires disabling native predictive text; full suggestions via modifier keys, not Tab
GitHub.com / MobileChat, PR summaries, code review; not a local IDE extension
Windows Terminal CanaryCLI integration

Enabling Copilot in the IDE

Prerequisites

Enable / Disable Granularity (VS Code)

ⓘ Copilot Free Plan

As of late 2024 GitHub offers a free tier of Copilot with limited features. Students, educators, and verified open-source maintainers may qualify for complimentary access to higher tiers. Always check the plans page for current eligibility.

Inline Suggestions & Keyboard Shortcuts

Inline suggestions appear as gray "ghost text" as you type. They are the most fundamental form of Copilot interaction.

Ghost Text Behavior

Keyboard Shortcuts Reference

ActionmacOSWindows / Linux
Accept full suggestionTabTab
Dismiss suggestionEscEsc
Next suggestionOption+]Alt+]
Previous suggestionOption+[Alt+[
Accept word-by-wordCommand+→Control+→
Open multiple suggestions panelCmd+Shift+A (VS Code)Ctrl+Enter (VS Code / JetBrains)
Open inline chatCommand+I (VS Code)Ctrl+I (VS Code) / Ctrl+Shift+I (JetBrains)
Open quick chatShift+Option+Command+LCtrl+Shift+Alt+L

Note: Xcode handles full suggestion acceptance via modifier keys rather than Tab. Line-by-line acceptance requires custom shortcut configuration in most editors.

⚠ Exam Tip — Shortcuts

Memorise the cycling shortcuts (Alt+] / Alt+[) and the accept shortcut (Tab). Know that opening the multiple suggestions panel is done with Ctrl+Enter on Windows. The "word-by-word" accept shortcut (Control+→) is also frequently tested.

Copilot Chat: Commands, Participants & Variables

Copilot Chat provides a conversational interface accessible from the IDE side panel, inline within the editor, and on GitHub.com. Reference: Asking Copilot questions in your IDE.

Slash Commands (type / to see full list)

CommandPurpose
/explainExplain selected code or a concept
/fixSuggest a fix for a bug or error in selected code
/test (or /tests)Generate unit tests for selected code
/docGenerate documentation/comments for selected code
/optimizeSuggest performance improvements

Chat Participants (type @ to invoke)

ParticipantAvailable inPurpose
@workspaceVS CodeQuery across the entire workspace/project
@vscodeVS CodeAsk about VS Code settings, commands, extensions
@terminalVS CodeGet help with terminal commands in the current shell context
@githubGitHub.com, IDEsAccess GitHub-specific skills, web search, advanced capabilities

Chat Variables (type # to invoke)

VariableAvailable inPurpose
#fileVS Code, JetBrainsReference a specific file as context
#webVS Code, GitHub.comInvoke a web search to include real-time information
#solutionVisual StudioReference the entire solution/project as context

Image Attachments

Model Selection

Plan Mode

Plan Mode lets Copilot create a detailed implementation plan before executing any changes. This is distinct from Agent Mode (autonomous execution).

⚠ Exam Tip — Three Modes

Know the distinction: Plan Mode = plan first, no auto-execution. Edit Mode = you pick files, Copilot edits with your approval per step. Agent Mode = fully autonomous, Copilot decides which files to touch and can run terminal commands. The exam tests which mode to use for a given scenario.

Smart Actions

File & Repository Exclusions in the IDE

Exclusions are configured at the org/repo level in GitHub settings. The IDE enforces them locally.

Command Palette

The Command Palette gives quick access to Copilot functions without memorising shortcuts.

  1. Open it in VS Code: Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
  2. Type Copilot to filter available commands
  3. Select actions like Explain This, Generate Unit Tests, or Developer: Reload Window

Troubleshooting in the IDE

GitHub Copilot CLI

CLI Overview: Old Extension vs. New Agentic CLI

This is a frequently confused topic — there have been two different CLI tools with similar names. Know the distinction.

Old gh copilot extension (retired)New GitHub Copilot CLI (current)
StatusRetiredCurrent, actively developed
Installgh extension install github/gh-copilotnpm install -g @github/copilot (or winget/brew/curl)
Invocationgh copilot suggest / gh copilot explaincopilot (bare command)
CapabilitySuggests/explains a single shell commandFull agentic AI in the terminal — can write/debug code, run multi-step tasks, interact with GitHub.com
CategoryGitHub CLI extensionStandalone agent tool (same family as Agent Mode / cloud agent)
⚠ Exam Tip — Don't Conflate the Two

If a question describes a tool that only suggests/explains a single shell command, that's the retired extension. If it describes an agent that can write code, debug, create PRs, and run multi-step tasks from the terminal, that's the current GitHub Copilot CLI.

Installation & Authentication

Install Commands by Platform

PlatformCommand
npm (all platforms)npm install -g @github/copilot — requires Node.js 22+
Windowswinget install GitHub.Copilot
macOS / Linuxbrew install --cask copilot-cli
macOS / Linux (script)curl -fsSL https://gh.io/copilot-install | bash

Windows additionally requires PowerShell v6+. Requires an active Copilot subscription on all platforms.

Authentication

Interactive vs. Programmatic Mode

Interactive Mode

Programmatic Mode

Security: Trusted Directories & Tool Approval

⚠ Exam Tip — Tool Approval Is a Safeguard

The manual tool-approval system (and trusted directories) exists specifically so an autonomous terminal agent doesn't make unreviewed changes to your filesystem. Expect a question framing --allow-all-tools as the highest-risk configuration option.

Legacy Commands: suggest & explain

Retained here because the exam may still reference this pattern as the historical baseline for "Copilot in the command line."

CommandPurposeExample
gh copilot suggest Generate a shell command from a natural language description gh copilot suggest "list all git branches sorted by last commit"
gh copilot explain Explain what a command does, including flags gh copilot explain "git rebase -i HEAD~3"

After a suggest response, interactive options included:

Suggestion Types (three categories)

TypeDescription
Generic shell commandStandard shell commands (ls, grep, find, awk, curl, etc.)
gh commandGitHub CLI-specific commands and workflows
git commandGit version control operations
💡 Study Tip — CLI Commands

Know that suggest/explain belong to the retired extension, while copilot (interactive or with -p) is the current agentic CLI. Know the three legacy suggestion types and the four legacy interactive options — both remain testable as historical/conceptual baseline.

Study Resources