我可以在Visual Studio Code中使用cmd而不是PowerShell启动az登录吗?

问题描述 投票:1回答:1

我有什么问题?从Visual Studio代码中的终端运行“ az登录”时,出现以下错误:

/ mnt / c / Windows / System32 / WindowsPowerShell / v1.0 / powershell.exe:无效参数

什么环境?我正在Windows 10(版本1809,操作系统内部版本17763.1158)中运行Visual Studio代码。我正在将Ubuntu 18.04与WSL 1结合使用,并将终端设置为使用“ C:\ Windows \ System32 \ bash.exe”

我似乎从VS代码启动PowerShell时遇到问题。有谁知道在进行az登录时是否可以将VS代码配置为使用cmd而不是PowerShell?欢迎其他任何建议。谢谢。

azure powershell ubuntu visual-studio-code windows-subsystem-for-linux
1个回答
0
投票

对于可视代码,如果要在需要终端时使用cmd,则可以将默认外壳程序设置为cmd。看起来像这样:

1。enter image description here

2。enter image description here

完成这两项操作后,如果需要新的cmd终端,则可以使用该终端。这样,cmd将成为默认设置。

© www.soinside.com 2019 - 2024. All rights reserved.