Skip to main content
In this lesson we’ll explore GitHub Copilot’s “multiple suggestions” feature: how to open the multi-suggestion panel, how to inspect alternate completions, and when to use it to improve code quality and developer productivity.
A presentation slide showing the title "Multiple Suggestions" on a light background and the word "Demo" on a dark curved shape to the right. Small "© Copyright KodeKloud" text appears in the bottom-left.
This feature surfaces several AI-generated completions for the same cursor context so you can pick the one that best fits your performance, readability, or style preferences. Each suggestion can represent a different algorithmic approach, a more concise expression, or a more explicit implementation — letting you choose instead of accepting the first result. How to open the multiple suggestions panel:
  • Windows / Linux: Alt+]
  • macOS: Option+]
When the panel opens you’ll see a small toolbar with available alternatives. Cycle between suggestions using the same shortcut (Alt+]/Option+]) and accept the chosen completion with Tab or by clicking it. You can enable “Always show toolbar” to display the toolbar whenever a suggestion is offered.
Use the multiple-suggestions panel when you want a range of possible implementations (for performance, readability, or style differences). Cycle with the keyboard shortcut, inspect each suggestion, and accept the one that fits your needs.
Quick reference: keyboard shortcuts and actions Examples Below are concise, corrected examples (extracted from a larger project). Each example illustrates different completions Copilot might propose when implementing common utilities. Use these as guidance; adjust constants and context (e.g., drawing surface, sizes) to your project. Example: Determine traffic light state This implementation computes the current light color for a direction based on a repeating cycle timer. Durations here are sample values and can be configured centrally in your application.
Example: Draw a traffic light This function places a circular traffic light at a fixed offset for each direction. It assumes drawing constants such as CENTER_X, CENTER_Y, STOP_LINE, LIGHT_OFFSET, LIGHT_RADIUS, and LIGHT_COLORS are provided by the surrounding module.
Example: Simple area calculator A utility that handles two shapes: rectangle (using CAR_SIZE) and circle (using LIGHT_RADIUS).
Example: Simple synchronous API request A compact example showing a safe synchronous call with timeout handling and error propagation.
Example: One quicksort option Copilot often suggests algorithmic variants. Here is a simple recursive, not-in-place quicksort completion it might propose.
Best practices when using multiple suggestions
  • Cycle through all alternatives and read them entirely before accepting.
  • Prefer suggestions that match your project’s coding standards and performance needs.
  • Test chosen code paths and add unit tests for edge cases the suggestion may not cover.
  • Treat generated code as a draft that requires review, refactoring, and security analysis.
Do not accept generated code blindly. Verify correctness, performance implications, and security concerns before merging suggestions into your codebase.
Summary The multiple-suggestions panel is a powerful way to explore alternative implementations quickly. Use the keyboard shortcut to compare completions, choose the most appropriate one, and always validate the output. With careful review, multiple suggestions can accelerate development while maintaining code quality. Links and references

Watch Video