vscode中powerShell异常
. : 无法加载文件 C:\Users\dongyiliang\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本……
解决办法powershell 设置可运行脚本的权限
第一步:以管理员身份运行powershell 第二步:执行:get-ExecutionPolicy,回复Restricted,表示状态是禁止的。 第三步:执行:set-ExecutionPolicy RemoteSigned 第四步:选择Y,回车。 第五步:重启powershell,问题解决。

Comments