To configure GitHub Copilot's basic settings, open a Visual Studio Code settings tab, and navigate to the GitHub Copilot extension section. You can set the following settings in the dialog:
-
Inline Suggestions : Enable (
github.copilot.inlineSuggest.enable
)
Turns inline suggestions on or off. -
Languages (
github.copilot.enable
)
Configure the languages that are enabled for GitHub Copilot. This string is of the form
{ "python": true, "markdown": false, ...}
.
These are the most common VS Code keyboard shortcuts relevant for GitHub
Copilot.
If you wish to rebind the shortcuts, use the Keyboard Shortcuts editor and
search for the command name below, or directly configure the shortcuts in your keybindings.json
file. For more information, see Key Bindings for Visual Studio Code in the VS Code documentation.
-
Accept an inline suggestion:
Tab
.editor.action.inlineSuggest.commit
-
Dismiss an inline suggestion:
Esc
.editor.action.inlineSuggest.hide
-
Show next inline suggestion:
Alt + ]
orOption + ]
.editor.action.inlineSuggest.showNext
-
Show previous inline suggestion:
Alt + [
orOption + [
.editor.action.inlineSuggest.showPrevious
-
Trigger inline suggestion:
Alt + \
orOption + \
.editor.action.inlineSuggest.trigger
-
Open Copilot (10 suggestions in separate pane):
Ctrl + Enter
.github.copilot.generate
-
Copilot toggle on/off: No default shortcut.
github.copilot.toggleCopilot
To learn more about GitHub Copilot, go to the documentation table of contents.