GitHub Copilot Features
Introduction
Section titled “Introduction”GitHub Copilot uses AI to assist developers with code suggestions, tests, and explanations directly in the editor.
Key Capabilities
Section titled “Key Capabilities”- Inline code suggestions: receive context-aware completions while typing.
- Unit test generation: ask Copilot to create tests for existing functions.
- Chat and agentic mode: converse with Copilot to refactor code, explain snippets, or generate new modules.
- Copy code: quickly insert generated snippets into your editor.
- Security scanning: Copilot can highlight insecure patterns and suggest fixes.
Example: Generate a Test
Section titled “Example: Generate a Test”In supported editors, type a comment describing the test:
// Test that add() returns sum of numbersCopilot will suggest a corresponding Jest test block.