Skip to main content

Configuring your personal GitHub Copilot settings on GitHub.com

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

Who can use this feature?

GitHub Copilot Individual

About GitHub Copilot settings on GitHub.com

In addition to the configuration for the GitHub Copilot plugin in your supported IDE, you can configure settings for GitHub Copilot on GitHub.com. 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 completion suggestions that match publicly available code. If you choose to block suggestions matching public code, GitHub Copilot checks code completion 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, and you accept a suggestion for which one or more matches were found, you can click through from an entry in the GitHub Copilot log to view a list of references 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 Settings.

    Screenshot of a user's account menu on GitHub. The menu item "Settings" is outlined in dark orange.

  2. In the left sidebar, click Copilot.

  3. Under 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.

  4. To confirm your new settings, click Save.

Enabling or disabling prompt and suggestion collection

You can choose whether your prompts and Copilot's suggestions are collected and retained by GitHub, and further processed and shared with Microsoft. For more information about data that GitHub Copilot may collect depending on your settings, see "GitHub Terms for Additional Products and Features" and the GitHub Copilot privacy FAQ.

  1. In the upper-right corner of any page on GitHub, click your profile photo, then click Settings.

    Screenshot of a user's account menu on GitHub. The menu item "Settings" is outlined in dark orange.

  2. In the left sidebar, click Copilot.

  3. To allow or prevent GitHub using your data, select or deselect Allow GitHub to use my code snippets from the code editor for product improvements.

  4. To confirm your new settings, click Save.