SaltfishTry for free

How to Allow Suggestions Matching Public Code in GitHub

·2 min read
In this article

This guide will walk you through the process of enabling suggestions matching public code in GitHub. This setting allows GitHub Copilot to provide code suggestions based on publicly available code, enhancing your coding efficiency.

Explore more GitHub tutorials with interactive Saltfish walkthroughs.

Here's how to allow suggestions matching public code in GitHub

  1. Access GitHub Settings

    To begin, navigate to your GitHub profile settings. This is typically done by clicking on your profile picture located in the top-right corner of the GitHub interface and selecting 'Settings' from the menu.

  2. Navigate to Copilot Features

    Once in your settings, look for the 'Copilot' option in the left-hand sidebar, usually found under the 'Code, planning, and automation' section. Click on it, then select 'Features' from the expanded Copilot submenu.

  3. Locate Suggestions Matching Public Code

    On the Copilot Features page, scroll down to the 'Privacy' section. Here, you will find the 'Suggestions matching public code' setting, which controls whether Copilot uses public code for suggestions.

  4. Open the Dropdown Menu

    The 'Suggestions matching public code' setting will show its current status, likely 'Blocked'. Click on the dropdown button next to this status to reveal the available options.

  5. Allow Suggestions

    From the dropdown menu, select "Allowed". This action will enable GitHub Copilot to provide code suggestions that match publicly available code, enhancing its utility.

  6. Verify the Setting Update

    After selecting "Allowed", the setting will update to reflect your choice. You should see "Allowed" displayed next to "Suggestions matching public code", confirming the change.

Your turn to show how it works.

Build a walkthrough of your product with Saltfish, then share it with your customers.

Create a guide with Saltfish

Frequently Asked Questions

This setting determines if GitHub Copilot can provide code suggestions by referencing publicly available code. When allowed, Copilot can draw from a broader range of examples to offer more relevant suggestions.