Skip to main content

Managing Copilot policies as an individual subscriber

Find out how to change your personal settings on GitHub to configure GitHub Copilot's behavior.

Who can use this feature?

Copilot Pro and Copilot Free

About GitHub Copilot settings on GitHub

In addition to the configuration for the GitHub Copilot plugin in your supported IDE, you can configure settings for GitHub Copilot on GitHub. The settings apply wherever you use GitHub Copilot.

Enabling or disabling suggestions matching public code

Note

If you are a member of an organization on GitHub Enterprise Cloud who has been assigned a GitHub Copilot seat through your organization, you will not be able to configure suggestions matching public code in your personal account settings. Your setting for suggestions matching public code will be inherited from your organization or enterprise.

Your personal settings for GitHub Copilot include an option to either allow or block code suggestions that match publicly available code. If you choose to block suggestions matching public code, GitHub Copilot checks code suggestions with their surrounding code of about 150 characters against public code on GitHub. If there is a match, or a near match, the suggestion is not shown to you.

If you choose to allow suggestions matching public code, when Copilot suggests matching code you can display details of the matches and click through to the relevant repositories on GitHub. For more information, see Finding public code that matches GitHub Copilot suggestions.

  1. In the upper-right corner of any page on GitHub, click your profile photo, then click Your Copilot.
  2. 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.