GH-900 ยท Automation and AI-assisted development
What can GitHub Copilot do, and where?
Code completion, Copilot Chat, explaining and generating code, and where Copilot can be used (editor, GitHub.com, CLI).
Key points
- Copilot is an AI assistant for developers.
- It offers inline code completion while you type, and Copilot Chat for asking questions, explaining code and generating code.
- You can use it in supported editors (IDEs), on GitHub.com, in GitHub Mobile and from the command line with Copilot CLI.
- Always review its output before you accept it.
Source: https://docs.github.com/en/copilot/get-started/plans
Practice questions
Which Copilot feature suggests code as you type in the editor?
- Inline code completion
- A GitHub Actions runner
- A dev container
- The Marketplace search
Show answer
Answer: A. Inline code completion
Inline suggestions (code completion) appear while you type. Chat is a conversation, and Actions and Codespaces are different products.
Where can you use Copilot Chat?
- In supported IDEs
- On GitHub.com
- In GitHub Mobile
- Inside the plain git commit command
- In the GitHub Actions runner image only
Show answer
Answer: A. In supported IDEs, B. On GitHub.com, C. In GitHub Mobile
Chat is available in IDEs, on GitHub.com and in GitHub Mobile (among others). It is not a feature of the Git command-line client itself or of a printer driver.
True or false: Copilot works only inside a code editor.
Show answer
Answer: False
False. Besides editors, Copilot Chat is available on GitHub.com and in GitHub Mobile, and Copilot CLI works in the terminal.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
