。 ://i.sstatic.net/ol3rcpe1.png“ alt =”在此处输入图像说明”>
Check if your VS Code is in Restricted Mode, as indicated on the lower left corner of the screen. Click on Restricted Mode and Trust your Folders & Workspaces so your extensions will be enabled.
In a Trusted Window
You trust the authors of the files in the current window. All features are enabled:
I know I am late to the party, but had an issue trying to sign in (authenticate) within Copilot. I have an active license, but Copilot would not let me sign in.
When I openend the settings, I saw the username from a different account. When switching to the correct one, Copilot worked again.
Given that GitHub Copilot is so fresh and well-liked, updates are made often. When encountering this kind of problem, I would advise entirely purging and reinstalling.
Installation of GitHub Copilot in Visual Studio Code
The documentation lists extensions for Visual Studio Code, Visual Studio, Neovim, and the JetBrains suite as IDEs that GitHub Copilot supports.
The installation consists of three main steps:
Create a GitHub account (if you don’t have one already).
Go to GitHub Copilot and click on “Start my free trial”. Follow the sign-up steps and make sure to cancel before your 60-day free trial is up (if you don’t want to continue using the tool).
Install the VSCode extension by searching for “GitHub Copilot” on the extensions tab. You’ll be asked to sign in to GitHub, authorize the extension, and then Copilot will be set up.
and it suddenly started working. I may have opted to disable it for typescript in a GUI a day or two ago - if so that would indicate more state than what is seen in the settings.json file (?).
发布评论
评论(18)
2024年2月,
Feb 2024
如屏幕的左下角所示,检查您的VS代码是否处于限制模式。单击限制模式并信任您的文件夹&工作区,以便将启用扩展名。
。 ://i.sstatic.net/ol3rcpe1.png“ alt =”在此处输入图像说明”>
Check if your VS Code is in Restricted Mode, as indicated on the lower left corner of the screen. Click on Restricted Mode and Trust your Folders & Workspaces so your extensions will be enabled.
我知道我参加聚会迟到了,但是遇到了一个问题,试图在Copilot中登录(身份验证)。我有活跃的许可证,但是Copilot不会让我登录。
当我打开设置时,我从另一个帐户中看到了用户名。切换到正确的一个时,Copilot再次工作。
I know I am late to the party, but had an issue trying to sign in (authenticate) within Copilot. I have an active license, but Copilot would not let me sign in.
When I openend the settings, I saw the username from a different account. When switching to the correct one, Copilot worked again.
我已经完成了免费试用,但已经支付了费用,但它并没有立即对我起作用。
但是,以下步骤解决了这个问题:
I had gotten to the end of the free trial, but had paid the sub, but it didn't work for me immediately.
However, the following steps got round that:
另一件要尝试的事情是:打开 CoPilot 扩展程序并确保其启用而不是禁用。
Another thing to try: open the CoPilot extension and make sure it's Enabled and not Disabled.
我也有同样的症状。在 VS Code 中注销后,我无法登录。根本原因是 Github API 的速率限制。
I had the same symptoms. After logging out in VS Code I could not log in. The root cause was rate limit of Github API.
转到
文件>;首选项>设置
并搜索“副驾驶”。
Copilot:Enable
属性并将值从*
设置为true
Go to
File > Preferences > Settings
and search for "copilot".
Copilot:Enable
property and set the value from*
totrue
在Mac上?
确保VS代码在应用程序目录中。
我的错误是加载错误的版本:
On a mac?
Make sure VS Code is in the Applications directory.
My mistake was loading the wrong version:
鉴于 GitHub Copilot 如此新鲜且广受欢迎,因此经常进行更新。遇到此类问题时,我建议彻底清除并重新安装。
在 Visual Studio Code 中安装 GitHub Copilot
该文档列出了 Visual Studio Code、Visual Studio、Neovim 和 JetBrains 套件的扩展,作为 GitHub Copilot 支持的 IDE。
如果您想要更全面的解释,我的同事 Rafael 根据他使用 Copilot 和 VSCode 的时间写了一篇很棒的文章:https://www.scalablepath.com/full-stack/ai-pair-programming-github-copilot-review
Given that GitHub Copilot is so fresh and well-liked, updates are made often. When encountering this kind of problem, I would advise entirely purging and reinstalling.
Installation of GitHub Copilot in Visual Studio Code
The documentation lists extensions for Visual Studio Code, Visual Studio, Neovim, and the JetBrains suite as IDEs that GitHub Copilot supports.
If you would like a more thorough explanation, my colleague Rafael wrote a great article based on his time with Copilot and VSCode: https://www.scalablepath.com/full-stack/ai-pair-programming-github-copilot-review
三个常见原因:
例如在Vscode中的左下角,如果看到此信息,您可能不会签署:
,然后按照提示登录,然后副驾驶工作。
Three common causes:
E.g. In VSCode look on the bottom left, if you see this, you might not be signed in:
Click the icon, and follow the prompts to sign in, then CoPilot should work.
我知道它有点晚了。但是我今天遇到了这个问题。如果禁用和重新启动无济于事,则可以尝试:
在卸载处,选择安装另一个版本,然后在最新版本之前选择该版本:

”之前选择该版本
Reload vscode:

执行此操作后,我的副驾驶员再次开始工作。
I know its a bit late. But I encountered this problem today. If disabling and restarting doesn't help, you could try:
At uninstall, select Install another version, and select the version before the latest:

Reload VSCode:

After doing this, my copilot started working again.
您应该检查两件事:
1=>更新VSCode到最新版本
2=>将 GitHub Copilot 更新到最新版本(从扩展部分启用)
更新后,可能需要您重新加载/重新启动 VSCode。
从菜单栏中,转到
View ->输出
;从左侧的下拉列表中选择 GitHub Copilot 以查看后台发生的情况的日志。
看看我的下拉菜单 imgur.com/VVHfqwv
Two things you should check:
1=> Update VSCode to the latest version
2=> Update GitHub Copilot to the latest version (Enable it from the extension section)
After the update, it MAY require that you Reload/Restart VSCode.
From the Menubar, go to
View -> Output
;Choose GitHub Copilot from the pulldown on the left to see the log of what is going on in the background.
Look at my pulldown here imgur.com/VVHfqwv
去了Copilot扩展设置并更改
为
,然后突然开始工作。我可能选择将其禁用为
typeScript
在每天或两次前的GUI中 - 如果这样,这将表明状态比settings.json文件(?)中所看到的要多。Went to copilot extension settings and changed
to
and it suddenly started working. I may have opted to disable it for
typescript
in a GUI a day or two ago - if so that would indicate more state than what is seen in the settings.json file (?).转到您的 Github 帐户并检查您是否已支付账单,就我而言,这就是问题所在。
Go to your Github account and check if you have paid the bill, In my case that was the problem.
重新启动VSCODE就是这样,它对我有用。重新启动。
Restart vscode thats it, it works for me post a restart.
对我来说,从“扩展”菜单中简单地“重新启动扩展”(Mac 上的 CMD+SHIFT+X,Windows 上的 CTRL+SHIFT+X)就可以解决问题。
For me, a simple "Restart extensions" from the Extensions menu (CMD+SHIFT+X on Mac, CTRL+SHIFT+X on Windows) did the trick.
以上所有解决方案对我不起作用。
对我有用的是打开VS代码作为“管理员”。然后,GitHub Copilot才开始工作✅
这是我找到该解决方案的地方:
https://github.com/orgs/community/discussions/6785#discussioncomment- 1561804
All the above solutions didn't work for me.
What worked for me was opening VS Code as an "administrator". Then Github Copilot just started working ✅
Here's where I found that solution:
https://github.com/orgs/community/discussions/6785#discussioncomment-1561804
在 Visual Studio 中,如果您是禁用了 Copilot 的人,则可以通过以下方式启用。
要么搜索“副驾驶”。
或者转到“工具”>>“选项”>>“GitHub”>>“Copilot”
转到“全局启用”并将 false 更改为 True。
In Visual Studio, if you are the one that disabled the Copilot before you can enable the following way.
Either search for "Copilot".
Or go to Tools>>Options>>GitHub>>Copilot
Go to Enable Globally and change from false to True.