Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you make GitHub Copilot opt-in on a per-project basis? [duplicate]

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?

like image 567
Jo Liss Avatar asked Jan 25 '26 14:01

Jo Liss


1 Answers

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)

screenshot of the Enable dropdown

like image 151
Viktor Sec Avatar answered Jan 27 '26 16:01

Viktor Sec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!