Skip to content

GitHub Copilot Features

GitHub Copilot uses AI to assist developers with code suggestions, tests, and explanations directly in the editor.

  • 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.

In supported editors, type a comment describing the test:

// Test that add() returns sum of numbers

Copilot will suggest a corresponding Jest test block.