Effectively interacting with Copilot's inline suggestions is key to productivity. Here are the main actions:
Full Suggestion: When you see a greyed-out suggestion you want to use entirely:
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
).
If an inline suggestion appears but you don't want it:
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.