以管理员身份 打开 powershell 输入下面命令 按 Enter

set-ExecutionPolicy RemoteSigned 

输入 A 按 Enter(回车) 重启 vscode 就可以了