解决|打开vscode终端进程报错“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe”已终止,退出代码: 3221225477。

今天打开VScode出现下面问题:
“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe”已终止,退出代码: 3221225477。
解决|打开vscode终端进程报错“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe”已终止,退出代码: 3221225477。_第1张图片
一直都打不开终端,运行不了代码

主要原因就是没有配置cmd

解决办法:
打开文件 -> 首选项 -> 设置,打开箭头所指向json文件
解决|打开vscode终端进程报错“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe”已终止,退出代码: 3221225477。_第2张图片
在箭头所指处添加下面代码即可(注意记得加分号)

"terminal.integrated.shell.windows": "C:/WINDOWS/System32/cmd.exe"

解决|打开vscode终端进程报错“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe”已终止,退出代码: 3221225477。_第3张图片

最后终端可以成功运行
解决|打开vscode终端进程报错“C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe”已终止,退出代码: 3221225477。_第4张图片

你可能感兴趣的:(配置环境以及相关报错问题,vscode,3221225477,powershell)