1. Official GitHub Documentation
"Getting started with GitHub Copilot": This document explains the core functionality of Copilot. It states
"As you type
it analyzes the context from your comments and code
and offers suggestions from within your editor... GitHub Copilot processes context from the file you are editing
and related files..." This directly supports that open files (tabs) are a key source of context.
Source: GitHub Docs
"Getting started with GitHub Copilot
" section on "About GitHub Copilot."
2. Official GitHub Documentation
"Using GitHub Copilot Chat in your IDE": This guide details how to interact with Copilot Chat. It emphasizes providing specific context in prompts: "You can ask Copilot Chat to help with a specific piece of code. To do this
highlight the code in your editor and then ask your question." This action is equivalent to adding a relevant code snippet to the prompt's context.
Source: GitHub Docs
"Using GitHub Copilot Chat in your IDE
" section on "Asking questions about your code."