Here is how to block suggestions matching public code in github
- First click on your profile picture in the top-right corner of the header
- Next click on "Settings" in the dropdown menu
- Click on "Copilot" in the left sidebar under "Code, planning, and automation" section
- Click on "Features" in the Copilot submenu
- Locate the "Suggestions matching public code" option under the Privacy section
- Then click on the dropdown button next to it
- Finally select "Blocked" option from the dropdown menu






