1. GitHub Docs, "Using GitHub Copilot Chat in your IDE." This official documentation explicitly details the feature of asking questions to understand code. It states, "You can ask Copilot Chat to help you by... explaining a selected code snippet." It also describes the /explain slash command, which is "used to get an explanation of the selected code."
Reference Location: Section "Asking questions about your code."
2. GitHub Docs, "Getting started with GitHub Copilot." This guide introduces the core capabilities, including the chat interface's role in code comprehension. It highlights that Copilot can "explain and document code" by generating summaries of a file's purpose or explaining a selected code block.
Reference Location: Section "See suggestions from GitHub Copilot Chat in your editor."
3. Li, Z., et al. (2023). How do software developers use AI-powered code assistants? An exploratory study of GitHub Copilot. Proceedings of the 45th International Conference on Software Engineering (ICSE '23). This peer-reviewed study analyzes how developers use Copilot. The findings show that a significant use case is "Code Explanation," where developers use the tool to understand unfamiliar or complex code segments, confirming that this is a key real-world application.
Reference Location: Section 4.2.1 "Code Explanation."
DOI: https://doi.org/10.1109/ICSE48619.2023.00071