1、用管理员权限打开vscode
2、文件终端中打开,输入 Set-ExecutionPolicy -Scope CurrentUser
3、再输入RemoteSigned
4、使用get-ExecutionPolicy查看权限,可以看到变为了RemoteSigned
重启问题解决

1、用管理员权限打开vscode
2、文件终端中打开,输入 Set-ExecutionPolicy -Scope CurrentUser
3、再输入RemoteSigned
4、使用get-ExecutionPolicy查看权限,可以看到变为了RemoteSigned
重启问题解决