The following instructions are for VS Code. If you are using Visual Studio, or a JetBrains IDE, click the appropriate tab at the start of this article.
Prerequisites
You can switch the AI model that's used by Copilot code completion if:
- An alternative model is currently available
- You are using the latest releases of VS Code with the latest version of the GitHub Copilot extension
Note
The list of available models will change over time. When only one code completion model is available, the model picker will only show that model. Preview models and additional code completion models will be added to the picker as they become available.
For more information, see Copilot code suggestions in your IDE.
Changing the AI model for code completion
- Open the command palette by pressing Ctrl+Shift+P (Windows/Linux) / Command+Shift+P (Mac).
- Type
change completions model
and select the "GitHub Copilot: Change Completions Model" command. - In the dropdown menu, select the model you want to use.
Checking which model is being used
-
Open the Settings editor by pressing Ctrl+, (Linux/Windows) / Command+, (Mac).
-
Type
copilot completion
and look for the "GitHub > Copilot: Selected Completion Model" section.The field in this section displays the currently selected model. If the field is empty, the default model is being used.