visual studio code 执行 sp1 文件

需要安装插件PowerShell

 

如提示 Unsupported PowerShell version 2.0, language features are disabled  (不支持的PowerShell版本2.0,语言功能被禁用)

 解决如下

Git Clone代码到本地

git clone http://www.github.com/PowerShell/vscode-powershell

 

另外,有可能执行 .sp1 文件时,有提示 在此系统中禁止执行脚本  ,解决方法

在powershell中执行 set-ExecutionPolicy RemoteSigned

 

posted @ 2019-11-13 10:59  H辉  阅读(340)  评论(0)    收藏  举报