You can currently enable/disable Copilot only globally for the user or on a per-language basis through the UI.
However, you can disable Copilot globally and overwrite the setting directly in the settings.json file for a specific workspace. For that, edit or create the file .vscode/settings.json
with this content:
{
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": false,
"scminput": false
},
}
As noted in the comments, the UI can guide you a little:
- Go to "Settings"
- Search for "copilot"
- Click the "User" tab to globally configure
- Click the "Workspace" tab to configure for a single workspace
You still need to edit settings.json but at least you get a handy button that opens it for editing for you, with default values.