Step 3: Handling Copilot Suggestions

Effectively interacting with Copilot's inline suggestions is key to productivity. Here are the main actions:

Accepting Suggestions

Full Suggestion: When you see a greyed-out suggestion you want to use entirely:

  • Press the Tab key.

Partial (Next Word): To accept only the next word of the suggestion:

macOS:Cmd+
Win/Lin:Ctrl+

Note: This shortcut might vary slightly or conflict in some IDEs/configurations.

Partial (Next Line): Accepting only the next line often requires setting a custom keybinding (e.g., for editor.action.inlineSuggest.acceptNextLine).

Rejecting Suggestions

If an inline suggestion appears but you don't want it:

  • Press the Esc key.
  • Alternatively, just continue typing your own code; the suggestion will disappear.

Cycling Suggestions

Copilot often has multiple suggestions available. You can cycle through them:

Next Suggestion:Alt+] (Win/Lin) or Option+] (Mac)
Previous Suggestion:Alt+[ (Win/Lin) or Option+[ (Mac)

View All in Panel: To see multiple suggestions simultaneously in a separate panel:

macOS:Cmd+Shift+A (then click "Copilot: Open Completions Panel")
Win/Lin:Ctrl+Enter (then click "Copilot: Open Completions Panel")

You can then choose and accept a specific suggestion from the panel.