vscode 切换默认终端(powershell-->cmd)
PowerShell
PowerShell/PowerShell: PowerShell 是由微软开发的命令行外壳程序和脚本环境,支持任务自动化和配置管理。它包含了丰富的.NET框架功能,适用于Windows和多个非Windows平台,提供了一种强大而灵活的方式来控制和自动执行系统管理任务。
项目地址:https://gitcode.com/gh_mirrors/po/PowerShell

·
在vscode集成终端中,默认选择的是powershell,但是它有时没有权限,如执行以下操作
$ nodemon ./bin/www //执行node的相关命令
切换成cmd执行,Ctrl + P输入“settings.json”,如下图
// 添加如下代码即可
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
重新打开终端,选择node即可运行




PowerShell/PowerShell: PowerShell 是由微软开发的命令行外壳程序和脚本环境,支持任务自动化和配置管理。它包含了丰富的.NET框架功能,适用于Windows和多个非Windows平台,提供了一种强大而灵活的方式来控制和自动执行系统管理任务。
最近提交(Master分支:6 个月前 )
fd85f6c3
17 小时前
d95d96ac
3 天前
更多推荐
所有评论(0)