Visual studio code 如何在VsCode终端中运行MSyS2 Mingw64 bash以及cmd提示符?

Visual studio code 如何在VsCode终端中运行MSyS2 Mingw64 bash以及cmd提示符?,visual-studio-code,mingw-w64,msys2,Visual Studio Code,Mingw W64,Msys2,我的设置设置为: "terminal.integrated.shell.windows":"C:\\msys64\\usr\\bin\\bash.exe", "terminal.integrated.shellArgs.windows": ["-i"], "terminal.integrated.env.windows": { "PATH": "/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System3

我的设置设置为:

"terminal.integrated.shell.windows":"C:\\msys64\\usr\\bin\\bash.exe",
    "terminal.integrated.shellArgs.windows": ["-i"],
    "terminal.integrated.env.windows": {
        "PATH": "/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/"
    },
这工作正常,但要将终端更改为Cmd提示符,我必须手动将设置更改为:
“terminal.integrated.shell.windows”:“C:\\windows\\System32\\cmd.exe”

我尝试使用shell launcher扩展来简化终端之间的切换,但这对MingwBash不起作用。我使用扩展来运行Octave gui,它工作得很好。我猜这是因为通过此扩展启动时没有为shell指定路径。还有什么我能做的吗

"shellLauncher.shells.windows": [
        {
            "shell": "C:\\Windows\\System32\\cmd.exe",
            "label": "Cmd Prompt"
        },
        {
            "shell": "C:\\Windows\\<sysnative>\\WindowsPowerShell\\v1.0\\powershell.exe",
            "label": "PowerShell"
        },
        {
            "shell": "C:\\msys64\\usr\\bin\\bash.exe",
            "label": "mingw bash"
        },
        {
            "shell": "C:\\Octave\\Octave-5.2.0\\mingw64\\bin\\octave-gui.exe",
            "label": "Octave gui"
        }
    ],
“shellLauncher.shells.windows”:[
{
“shell”:“C:\\Windows\\System32\\cmd.exe”,
“标签”:“Cmd提示符”
},
{
“shell”:“C:\\Windows\\\\WindowsPowerShell\\v1.0\\powershell.exe”,
“标签”:“PowerShell”
},
{
“shell”:“C:\\msys64\\usr\\bin\\bash.exe”,
“标签”:“mingw bash”
},
{
“shell”:“C:\\Octave\\Octave-5.2.0\\mingw64\\bin\\Octave gui.exe”,
“标签”:“倍频程gui”
}
],
{
            "shell": "C:\\msys64\\usr\\bin\\bash.exe",
            "label": "mingw bash",
            "env" : {"PATH": "/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/"
            }
        }