GH-300 · Question #63
How can you get multiple suggestions from GitHub Copilot?
The correct answer is B. By opening the completions panel in your editor. GitHub Copilot generates multiple alternative code completions simultaneously. To view all of them, you open the Copilot completions panel (also called the 'GitHub Copilot' panel or 'Open Completions Panel') in your IDE - in VS Code, this is triggered with Ctrl+Enter (or…
Question
How can you get multiple suggestions from GitHub Copilot?
Options
- ABy asking for multiple suggestions using comments in your code
- BBy opening the completions panel in your editor
- CBy using the inline chat functionality with the command 'multiple'
- DBy using @workspace in the chat window
How the community answered
(40 responses)- A3% (1)
- B93% (37)
- C5% (2)
Explanation
GitHub Copilot generates multiple alternative code completions simultaneously. To view all of them, you open the Copilot completions panel (also called the 'GitHub Copilot' panel or 'Open Completions Panel') in your IDE - in VS Code, this is triggered with Ctrl+Enter (or Cmd+Enter on Mac). This displays up to 10 alternative suggestions side by side. Writing comments asking for multiple suggestions (A) does not trigger the multi-suggestion panel. The inline chat 'multiple' command (C) does not exist. The @workspace chat participant (D) is for codebase-aware chat queries, not for viewing multiple inline completions.
Topics
Community Discussion
No community discussion yet for this question.