5 useful VSCode shortcuts for GitHub Copilot š¤
Ollie Ridsdale
Posted on May 7, 2024
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.
Posted on May 7, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.