GitHub Copilot Certification — Question 12
How can you improve the context used by GitHub Copilot? (Choose two.)
Answer options
- A. By opening the relevant tabs in your IDE
- B. By adding variables (#selection) to your prompt
- C. By adding the important files to your .gitconfig
- D. By adding the full file paths to your prompt of important files
Correct answer: A, D
Explanation
The correct answers are A and D. Opening relevant tabs in your IDE provides Copilot with immediate context about the code you are working on, while adding full file paths to your prompt allows Copilot to access specific files that are crucial for generating accurate suggestions. Options B and C do not provide the contextual information needed for better performance by Copilot.