{"meta":{"title":"Troubleshooting common issues with GitHub Copilot","intro":"This guide describes the most common issues with GitHub Copilot and how to resolve them.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/how-tos","title":"How-tos"},{"href":"/en/copilot/how-tos/troubleshoot-copilot","title":"Troubleshoot Copilot"},{"href":"/en/copilot/how-tos/troubleshoot-copilot/troubleshoot-common-issues","title":"Troubleshoot common issues"}],"documentType":"article"},"body":"# Troubleshooting common issues with GitHub Copilot\n\nThis guide describes the most common issues with GitHub Copilot and how to resolve them.\n\nFor questions about the general use of GitHub Copilot, product impact, human oversight, and privacy, see the comprehensive list of [GitHub Copilot FAQs](https://github.com/features/copilot#:~:text=Frequently%20asked%C2%A0questions).\n\nIf GitHub Copilot stops working, check GitHub's [Status page](https://githubstatus.com) for any active incidents affecting GitHub Copilot or model availability.\n\n## Unable to use the GitHub Copilot extension in the IDE\n\nWe recommend you follow the quickstart guide for GitHub Copilot while setting up GitHub Copilot on your machine. For more information, see [Quickstart for GitHub Copilot](/en/copilot/quickstart).\n\nThe GitHub Copilot extension is frequently updated to fix bugs and add new features. It's important to keep your extension up to date because older clients cannot communicate with the GitHub Copilot servers. Update your GitHub Copilot extension on all the machines you have it installed.\n\nIf you're using a Copilot plan for a managed user account on GHE.com, you'll need to update some settings before you sign in. See [Using GitHub Copilot with an account on GHE.com](/en/copilot/managing-copilot/configure-personal-settings/using-github-copilot-with-an-account-on-ghecom).\n\nFor more information about configuring GitHub Copilot in a supported IDE, see [Configuring GitHub Copilot in your environment](/en/copilot/configuring-github-copilot/configuring-github-copilot-in-your-environment).\n\n## GitHub Copilot not working in some files\n\nIf you're using GitHub Copilot with a Copilot Business or Copilot Enterprise license, you may not see inline suggestions in your editor for some files. This happens when a file is excluded from being used by GitHub Copilot. Content exclusion can be configured by a repository administrator, or by an organization owner.\n\nWhen a file is affected by a content exclusion setting, GitHub Copilot will not suggest inline suggestions in that file, and the content of that file will not be used to inform inline suggestions in other files.\n\nIf a file has been configured as excluded content for GitHub Copilot, the icon in the status bar will have a diagonal line through it. Hover over the icon to see a tooltip that tells you which settings have applied this restriction.\n\n![Screenshot of the Copilot icon in VS Code with a tooltip for a content exclusion.](/assets/images/help/copilot/copilot-disabled-for-repo.png)\n\nFor more information, see [Excluding content from GitHub Copilot](/en/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/about-content-exclusions-for-github-copilot).\n\n## GitHub Copilot content exclusions are not being applied\n\nContent exclusion can be configured at the repository and organization level. The scope of the exclusion is determined by the level at which the rule is set:\n\n* **Repository administrators** can exclude content for their own repositories. This affects any Copilot users in the enterprise working within those specific repositories.\n* **Organization owners** can exclude content for users assigned a Copilot seat through their organization.\n\nAfter you add or change content exclusions, it can take up to 30 minutes to take effect in IDEs where the settings are already loaded. You can apply changes to your own IDE, forcing it to reload the content exclusion settings. For more information, see [Excluding content from GitHub Copilot](/en/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-github-copilot-features-in-your-organization/testing-changes-to-content-exclusions-in-your-ide#propagating-content-exclusion-changes-to-your-ide).\n\n> \\[!NOTE]\n> It's possible that Copilot may use semantic information from an excluded file if the information is provided by the IDE indirectly. Examples of such content include type information and hover-over definitions for symbols used in code, as well as general project properties such as build configuration information.\n\n## Error: \"GitHub Copilot could not connect to server. Extension activation failed\"\n\nThis error indicates that you do not have a Copilot plan, or there was an error connecting to the GitHub API to request a token to use GitHub Copilot.\n\nTo request another token from api.github.com, try signing in and out of Copilot from your IDE. Once you've logged out, Copilot will prompt you to sign back in.\n\nIf you cannot connect to the server, you can create a discussion in our [discussion forum](https://github.com/orgs/community/discussions/categories/copilot). You can include log files from your IDE to help us troubleshoot the issue. For more information on obtaining log files from your specific IDE, see [Viewing logs for GitHub Copilot in your environment](/en/copilot/troubleshooting-github-copilot/viewing-logs-for-github-copilot-in-your-environment).\n\n## Copilot not suggesting multiple lines of code\n\nThis is a known issue and our team is working towards a fix. For more information, see this comment on a [GitHub Community discussion](https://github.com/orgs/community/discussions/40522#discussioncomment-4701470).\n\n## Error: You've hit a rate limit\n\nThis error suggests that you have exceeded the rate limit for Copilot requests. GitHub uses rate limits to ensure everyone has fair access to the Copilot  service and to protect against abuse.\n\nMost people see rate limiting for select models, due to limited capacity.\n\nService-level request rate limits ensure high service quality for all Copilot  users and should not affect typical or even deeply engaged Copilot usage. We are aware of some use cases that are affected by it. GitHub is iterating on Copilot’s rate-limiting heuristics to ensure it doesn’t block legitimate use cases.\n\nIn the case you are rate limited, the error message will contain the suggested time to retry for a successful request. Consider [alternative actions](/en/copilot/concepts/rate-limits#what-to-do-if-you-are-rate-limited) to continue using Copilot while your limit is reset.\n\nIn case you experience repeated rate limiting in Copilot contact [GitHub Support](https://support.github.com).\n\n## Can't find Copilot Chat in my IDE\n\nIf you can't find Copilot Chat in your editor, make sure you have checked the \"Prerequisites\" section of [Asking GitHub Copilot questions in your IDE](/en/copilot/github-copilot-chat/copilot-chat-in-ides/using-github-copilot-chat-in-your-ide).\n\n> \\[!NOTE]\n> The linked article has tabs for various IDEs.\n\n## Latest Copilot Chat does not work in Visual Studio Code\n\nChanges to Copilot Chat coincide with Visual Studio Code releases, due to Copilot Chat's deep UI integration. As a result, every new version of Copilot Chat is only compatible with the latest release of Visual Studio Code. This means that if you are using an older version of Visual Studio Code, you will not be able to use the latest Copilot Chat.\n\nOnly the latest Copilot Chat versions will use the latest large language model provided by the Copilot service, as even minor model upgrades require prompt changes and fixes in the extension. An older version of Copilot Chat will still use the latest version of Copilot inline suggestions.\n\nTo use Copilot Chat, make sure you are using the [latest version of Visual Studio Code](https://code.visualstudio.com/updates).\n\n## Authentication problems with managed user account accounts\n\nIf you're using a Copilot plan for a managed user account on GHE.com, you'll need to update some settings before you sign in. See [Using GitHub Copilot with an account on GHE.com](/en/copilot/managing-copilot/configure-personal-settings/using-github-copilot-with-an-account-on-ghecom).\n\n## Authentication problems in Visual Studio Code\n\nIf you are signed in to GitHub but Copilot is unavailable in Visual Studio Code, it may be due to an authentication problem. Try the following steps to resolve the issue:\n\n1. In the bottom left corner of the Visual Studio Code window, click the **Accounts** icon, hover over your GitHub username, and click the **Sign out** button.\n2. To reload Visual Studio Code, press <kbd>F1</kbd> to open the command palette, and select **Developer: Reload Window**.\n3. After Visual Studio Code reloads, sign back in to your GitHub account.\n\n## Authentication problems in Visual Studio\n\nIf you experience authentication issues when you try to use Copilot Chat in Visual Studio, you can try the following steps to resolve the issue.\n\n1. Check that the GitHub ID you are signed into Visual Studio with is the same as the one you have been granted access to Copilot Chat with.\n2. Check whether your GitHub ID/credentials need refreshing in Visual Studio. For more information, see [Work with GitHub accounts in Visual Studio](https://learn.microsoft.com/en-us/visualstudio/ide/work-with-github-accounts?view=vs-2022\\&ref_product=copilot\\&ref_type=engagement\\&ref_style=text) in the Visual Studio documentation.\n3. Try removing and re-adding your GitHub ID to Visual Studio and restarting Visual Studio.\n4. If the above steps don't work, click the **Share feedback** button and select **Report a problem** to report the issue to the Visual Studio team.\n\n   ![Screenshot of the share feedback button in Visual Studio.](/assets/images/help/copilot/vs-share-feedback-button.png)\n\n## Interrupted chat responses on GitHub.com\n\nIf a chat response terminates unexpectedly, before the response is complete, try resubmitting the question.\n\nIn Copilot Chat ([github.com/copilot](https://github.com/copilot?ref_product=copilot\\&ref_type=engagement\\&ref_style=text)), you can resubmit your question by clicking the <svg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon octicon-sync\" aria-label=\"Retry\" role=\"img\"><path d=\"M1.705 8.005a.75.75 0 0 1 .834.656 5.5 5.5 0 0 0 9.592 2.97l-1.204-1.204a.25.25 0 0 1 .177-.427h3.646a.25.25 0 0 1 .25.25v3.646a.25.25 0 0 1-.427.177l-1.38-1.38A7.002 7.002 0 0 1 1.05 8.84a.75.75 0 0 1 .656-.834ZM8 2.5a5.487 5.487 0 0 0-4.131 1.869l1.204 1.204A.25.25 0 0 1 4.896 6H1.25A.25.25 0 0 1 1 5.75V2.104a.25.25 0 0 1 .427-.177l1.38 1.38A7.002 7.002 0 0 1 14.95 7.16a.75.75 0 0 1-1.49.178A5.5 5.5 0 0 0 8 2.5Z\"></path></svg> button under the chat response.\n\n## Further reading\n\n* [GitHub and Trade Controls](/en/site-policy/other-site-policies/github-and-trade-controls)"}