Answer: In the upper-right corner of any page on GitHub, click your profile picture, then click Copilot settings. To the right of Suggestions matching public code, select the dropdown menu, then click Allow to allow suggestions matching public code, or Block to block suggestions matching public code. Status: Confirmed Entry: tool/github-copilot/settings/toggle-public-code-suggestions Revision: 3 Digest: sha256:bb41ad3b51fcb1fc (changes whenever the content changes) Timeline: Created: 2026-11-13T03:30:04Z Last changed: 2026-11-19T13:04:38Z (Checked code length: — → 150 characters) Last verified: 2026-11-20T13:11:03Z Next check: 2026-11-21T13:11:03Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of Setting name | Suggestions matching public code | | [1] | 2026-11-20 Allow option | Allow | | [1] | 2026-11-20 Block option | Block | | [1] | 2026-11-20 Navigation step | Copilot settings | | [1] | 2026-11-20 Checked code length | 150 characters | characters | [1] | 2026-11-20 Sources: [1] GitHub. "Managing GitHub Copilot policies as an individual subscriber - GitHub Docs". https://docs.github.com/en/copilot/how-tos/manage-your-account/manage-policies Role: primary. Accessed: 2026-11-20T13:11:03Z Quote: "To the right of Suggestions matching public code , select the dropdown menu" (Supports: Setting name) Quote: "click Allow to allow suggestions matching public code, or Block to block suggestions matching public code" (Supports: Allow option, Block option) Quote: "click your profile picture, then click Copilot settings" (Supports: Navigation step) Quote: "checks code suggestions with their surrounding code of about 150 characters against public code on GitHub" (Supports: Checked code length) Snapshot SHA-256: 959dd71ebd55d28f852f029ca2c3bd0bbc4606368b2f1a42c8f315298be3ab36 (captured 2026-11-18T13:06:36Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:06:36Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:11:03Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:11:03Z Last attempt: 2026-11-20T13:11:03Z Notes and limitations: Extracted automatically from a single official source (section "Enabling or disabling suggestions matching public code"). Related: https://latestn.com/tool/github-copilot/settings/toggle-web-search-chat How do I enable or disable web search for GitHub Copilot Chat? https://latestn.com/tool/github-copilot/settings/view-setting-values How do I view the valid values or current value of a setting in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/troubleshooting/ask-why-workflow-failed How do I ask GitHub Copilot why a workflow has failed in a pull request? https://latestn.com/tool/github-copilot/settings/toggle-cli-sandbox How do I quickly enable or disable the sandbox in GitHub Copilot CLI? https://latestn.com/tool/github-copilot/settings/toggle-code-quality-security-tools How do I enable or disable built-in code quality and security validation tools for GitHub Copilot in the cloud? https://latestn.com/tool/github-copilot/settings/toggle-code-review-instructions How do I enable or disable custom instructions for GitHub Copilot code review? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:04:38Z | changed | Checked code length: — → 150 characters | [1] 2026-11-19T13:04:38Z | changed | Checked surrounding code length: 150 characters → — | [1] 2026-11-17T13:29:43Z | changed | Checked surrounding code length: — → 150 characters | [1] 2026-11-17T13:29:43Z | changed | Checked code length: 150 characters → — | [1] 2026-11-13T03:30:04Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/settings/toggle-public-code-suggestions/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/settings/toggle-public-code-suggestions POST: https://latestn.com/dispute/tool/github-copilot/settings/toggle-public-code-suggestions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/settings/toggle-public-code-suggestions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable or disable suggestions matching public code in GitHub Copilot? Revision 3, last verified 2026-11-20T13:11:03Z. https://latestn.com/tool/github-copilot/settings/toggle-public-code-suggestions (accessed 2026-11-21T09:50:41Z). @misc{LatestN_tool_github_copilot_settings_toggle_public_code_suggestions_r3, title = {How do I enable or disable suggestions matching public code in GitHub Copilot?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/settings/toggle-public-code-suggestions}}, note = {Revision 3; digest sha256:bb41ad3b51fcb1fc; last verified 2026-11-20T13:11:03Z; accessed 2026-11-21T09:50:41Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/settings/toggle-public-code-suggestions