mr.*_*bhi 10 visual-studio-code
我试图编译一个程序,但终端没有打开。
error:The terminal process failed to launch: Starting directory (cwd) "D:\vs code\march long 2020" does not exist.
Run Code Online (Sandbox Code Playgroud)
这家伙有同样的错误,但弹出窗口是不同的链接
下面是我的 vscode 的 JSON 文件
error:The terminal process failed to launch: Starting directory (cwd) "D:\vs code\march long 2020" does not exist.
Run Code Online (Sandbox Code Playgroud)
请参阅此链接以获取完整的错误描述,我编写了代码并编译并收到了错误消息。 关联
kmg*_*mgt 19
与我将 VS Code 中的默认 shell 更改为 Powershell 时遇到了同样的问题。在我的情况下,由于公司管理员,powershell 被阻止。
之后我无法再次打开终端。
要再次将 CMD 设为默认值,我必须更改 VS Code 设置中的路径:
terminal.integrated.shell.windowsEdit in settings.json"terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe",现在终端应该再次打开。这不是让 Powershell 在 VS Code 中工作的修复,只是恢复终端窗口的指南。
您似乎正在尝试在 Visual Studio Code 集成终端中获取 PowerShell。
\n我来分享一下我是如何做到的过程。
\n\n\n终端 \xe2\x80\xba 集成:Cwd
\n
\n将启动终端的显式启动路径,用作 shell 进程的当前工作目录 (cwd)。
\n如果根\n目录不是一个方便的 cwd,这在工作区设置中可能特别有用。
\n\n终端 \xe2\x80\xba 集成 \xe2\x80\xba Shell: Windows
\n
\n终端在 Windows 上使用的 shell 的路径(默认值:
单击编辑settings.json
\n将终端绝对路径粘贴到括号内(确保转义斜杠)。这就是我使用 double 的原因
\n\n\n"terminal.integrated.shell.windows":\n"C:\\\\InstallationDirectory\\\\PowerShell\\\\7\\\\pwsh.exe"
\n
| 归档时间: |
|
| 查看次数: |
21304 次 |
| 最近记录: |