我正在尝试将Visual Studio Code中的集成终端更改为VS 2019的Developer PowerShell。我了解我可以将集成终端目标从"terminal.integrated.shell.windows":
更改为并将其指向所需的终端。
但是,VS 2019开发者PowerShell的目标是C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -noe -c "&{Import-Module """C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell b6981dbc}"
将其用作集成外壳的目标时,出现错误The terminal shell path "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -noe -c " does not exist
。据我了解,VS 2019的Developer Powershell不是单独的应用程序,而是对原始powershell.exe
是否可以使用VS Developer PowerShell作为Visual Studio Code的集成终端?我可以像单独的终端一样轻松地打开VS 2019的Developer PowerShell,但是我更喜欢将其集成到VS Code中。
我只希望能够在开发人员PowerShell中编译和运行C ++文件,据我所知,这在标准Windows PowerShell中是不可能的。