If you're a Copilot user, you're probably already familiar with the shortcuts to accept (tab
) and dismiss suggestions (esc
).
But did you know about these 5 shortcuts? I've personally found them really useful.
1. Show next/previous inline suggestion
This shortcut lets you cycle forwards and backwards between different inline suggestions offered by Copilot
Mac: Option ⌥
+ [
/ Option ⌥
+ ]
Windows & Linux: Alt
+ [
/ Alt
+ ]
2. Trigger an inline suggestion
This one is super useful if you accidentally dismiss a suggestion with esc
, you can have Copilot trigger a new suggestion.
Mac: Option ⌥
+ \
Windows & Linux: Alt
+ \
3. Open suggestions panel
If cycling through shortcuts feels cumbersome, you might find this helpful. It opens all the suggestions in a panel where you can more easily review each one.
Mac: Control ⌥
+ Enter ⏎
Windows & Linux: Ctrl
+ Enter ⏎
4. Open inline chat
Chat with Copilot inline in your code, Copilot will generate code right at your cursor position.
💡 This also works in the terminal, if you'd like guidance on how to do something there.
Mac: Command ⌘
+ I
Windows & Linux: Ctrl
+ I
5. Start a new chat
If you're already chatting with copilot in the chat panel, you can use this shortcut to quickly start a new chat.
Mac: Control ^
+ L
Windows & Linux: Ctrl
+ L
and that's all five!💥. Hopefully you found those helpful.
Do you know any other shortcuts in VSCode or for Copilot? Let me know in the comments below, I'd love to hear about them.
Top comments (0)