Github
GitHub is a code hosting and version control platform for developers to collaborate on software projects.
Website
Industry
Website
Share this article:

How to block suggestions matching public code in GitHub

Here is how to block suggestions matching public code in github

  1. First click on your profile picture in the top-right corner of the header
  2. Next click on "Settings" in the dropdown menu
  3. Click on "Copilot" in the left sidebar under "Code, planning, and automation" section
  4. Click on "Features" in the Copilot submenu
  5. Locate the "Suggestions matching public code" option under the Privacy section
  6. Then click on the dropdown button next to it
  7. Finally select "Blocked" option from the dropdown menu

Create your own interactive guide with Guideflow

Why should you block suggestions matching public code in GitHub

GitHub is a leading platform for hosting and sharing code repositories, enabling collaboration among developers worldwide.

One useful feature on GitHub is the ability to block suggestions that match public code, enhancing the security and originality of your projects.

By filtering out these recommendations, developers can maintain the integrity of their private code and avoid inadvertently replicating publicly available solutions, thus fostering innovation and protecting their hard work.

Last update
April 13, 2026
Cursor MariaA cursor points to a button labeled "James."

Create your first demo in less than 30 seconds.