Enable GitHub Copilot only for specific projects in VSCode
Do you use the workspace feature in VSCode? I always use it together with an extension called Project Manager. Project Manager lets you manage workspaces in one place. This time I will write about how to turn GitHub Copilot on for each workspace.
A workspace is a file like XXX.code-workspace that can manage editor settings for each project. By writing GitHub Copilot settings there as shown below, you can enable or disable the feature. My preference is to disable GitHub Copilot in VSCode's global settings and enable it only for projects where I want to use it.
{
"folders": [
...
],
"settings": {
...
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": false,
"scminput": false
},
...
}
}GitHub CopilotVSCode