MENU

解决VSCode每次启动都登录一遍的BUG

May 26, 2023 • Windows

问题

一般会有两个账号,一个是 github copilot 插件授权账号,一个是配置云同步账号,发现每次启动都要登录一遍,这是 BUG,得治。

同时这个问题也会影响 github copilot 插件在 Visual Studio 2022 中的启用,症状为登录 github 账号授权时直接弹错(无任何原因提示)。

解决方法

打开 Powershell 执行以下命令:

cmdkey /list | Select-String -Pattern "LegacyGeneric:target=(vscode.+)" | ForEach-Object { cmdkey.exe /delete $_.Matches.Groups[1].Value }
作用:
windows 凭据存储满了,需要清理掉

官方说明:

https://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues