最近 vscode 打开驾驶员的时候发现登不上了,自己看了下原来是需要配置 hosts 文件。
mac :找到 访达 -> Shift + Command + G -> 调出对话框后输入 /etc/hosts -> 在当前文件夹用 vim 或其他方式添加
vscode copilot config
140.82.112.5 github.com
140.82.112.5 api.github.com
windwos: Windows 文件夹 -> System32文件夹 -> drivers文件夹 -> etc文件夹 -> hosts 文件 -> 在当前文件夹用 记事本 或其他方式添加
vscode copilot config
140.82.112.5 github.com
140.82.112.5 api.github.com
最后重启 vscode 就可以啦~
如果不能编辑请检查当前操作权限,希望能帮到大家~!