我尝试编译程序,但终端未打开。
错误:终端进程启动失败:起始目录(cwd)“D:\vs code\march long 2020”不存在。
这家伙有同样的错误,但弹出窗口不同link https://stackoverflow.com/posts/63027440/revisions.
以下是我的 Visual Studio Code 的 JSON 文件:
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"C_Cpp.updateChannel": "Insiders",
"files.autoSave": "afterDelay",
"java.saveActions.organizeImports": true,
"window.zoomLevel": 0,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.integrated.windowsEnableConpty": false,
"json.schemas": [
]
}
请参阅此链接以获取完整的错误描述。我编写了代码并编译并收到错误消息。
Link https://user-images.githubusercontent.com/52717415/89403066-67076d80-d735-11ea-92df-2a95ab0817aa.gif
此设置会破坏我的终端窗口(因为 PowerShell 由于公司管理策略而被阻止):
之后,我无法再次打开终端。
恢复CMD为默认值
- 打开首选项 > 设置(CTRL+,)
- 搜索
terminal.integrated.defaultProfile.windows
并设置默认值(对我来说命令提示符)
现在终端应该再次打开。这不是让 PowerShell 在 Visual Studio Code 中工作的修复程序,只是恢复终端窗口的指南。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)