Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. GH-700/
  4. GH-700 Learning Path/
  5. Study FAQs/
  6. Which Copilot Chat shortcuts can I use to explain, fix, test or document code?

Study FAQ

Which Copilot Chat shortcuts can I use to explain, fix, test or document code?

Exam · GH-700Knowledge domain · Enhance productivity by using GitHub Copilot (20–25%)Updated Nov 19, 2026
Also asked as 2
  • Where are /explain, /fix, /tests and /doc documented for Copilot Chat?
  • How do the common code-oriented Copilot Chat slash commands differ by client?

Answer

Use these shortcuts in a client that documents them, with the relevant active or selected code. They are code-oriented Copilot Chat commands, not a universal command set for the Copilot app, CLI or browser.

Shortcut Purpose Clients explicitly listing it in GitHub's multi-client cheat sheet
/explain Explain active or selected code VS Code, Visual Studio, JetBrains IDEs and Xcode
/fix Propose a fix for selected code or errors VS Code, Visual Studio, JetBrains IDEs and Xcode
/tests Generate unit tests for selected code VS Code, Visual Studio, JetBrains IDEs and Xcode
/doc Add or generate symbol documentation Visual Studio and Xcode

The VS Code and JetBrains common-command lists do not establish /doc support there; absence from those lists is not proof that a client never supports it. Type / in your actual client's prompt box to inspect currently available commands.

Provide explicit context. In VS Code, #file includes a file and #selection includes selected text; the app's # issue syntax has a different meaning. Also check lifecycle commands by client: the cheat sheet describes VS Code /clear as a new chat and /new as creating a project, while browser /new starts a conversation.

Review a proposed fix and execute generated tests before relying on them. Generating tests does not show that they pass or cover the intended behavior.

References: GitHub Copilot Chat cheat sheet - GitHub Docs.

Full explanation

GH-700: Manage Copilot Sessions and Context Across Clients

Study guide · GH-700

Read the full explanation →
← Back to GH-700 FAQsView learning path →

Related questions

When should I use GitHub Projects, a Copilot app project, or a repository session? →How do I identify whose Copilot credit allowance and spending limits apply? →Why can Copilot usage stop while another budget still has capacity? →Why can similar Copilot prompts consume different amounts of AI credits? →Where can I monitor Copilot AI credit usage, and what can the reports explain? →How should I choose a GitHub Copilot model for a business task? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.