我正在尝试使用 Powershell 打开 Visual Studio Codecode
在文件夹内时执行命令。当我尝试这样做时,我总是收到此错误:
块引用代码:术语“代码”不被识别为 cmdlet、函数、脚本文件或可操作程序的名称。
检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。
行:1 字符:1
+ 代码。
+ ~~~~
+ 类别信息:ObjectNotFound:(代码:字符串)[],CommandNotFoundException
+ FullQualifiedErrorId:CommandNotFoundException
我发现了一个已关闭的 GitHub 问题 (https://github.com/Microsoft/vscode/issues/22881)具有完全相同的问题,而寻求解决方案的人的解决方案是:
Go to File > Preferences > Settings
Change the property "terminal.integrated.shell.windows" as follows:
"terminal.integrated.shell.windows": "C:\Windows\System32\cmd.exe"
Restart visual studio.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)