windows vscode 終端啟動閃退(Mark 一下)


前段時間vscode啟動終端突然閃退,粗略排查原因說是與電腦上的某些軟件有關,因為不想卸掉,就直接改用系統終端。但是慢慢的還是覺得vscode內集成的終端用起來比較方便,於是又開始研究,尋找解決方案。

首先描述一下問題,vscode 啟動終端閃退,軟件內提示‘The terminal process failed to launch: Windows cannot open this program because it has been prevented by a software restriction policy. For more information, open Event Viewer or contact your system Administrator.’

根據錯誤提示到vscode 官網 Docs 下查看相關描述,找到了解決方案,步驟如下:

1、打開vscode的設置:File->preferences->setting 

2、搜索欄輸入 ‘terminal.integrated.shell’搜索

3、Terminal>Intergrated>Default Profile: Windows 項的下拉框的null值改成Git Bash或者是Command Prompt

4、我可以愉快的繼續使用vscode了

 

猜想不同系統出現此類問題應該是需要修改Terminal>Intergrated>Default Profile 不同項下的配置文件

貼個圖:

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM