I'm using the VS Code GitHub Copilot extension. Sometimes I edit files that contain secrets, and I don't want to accidentally send those to Microsoft/GitHub.
Is it possible to make Copilot opt-in, so that it is only enabled if I have explicitly activated it for a project?
You can do it in the UI, but it's a bit hidden.
Go to Settings
-> Extensions
-> GitHub Copilot
-> Disable
Then click on the dropdown arrow next to the Enable
button and choose Enable (Workspace)