繁体   English   中英

Visual Studio Code 中的 MSYS2 MinGW x64 shell 在新的 window 中打开

[英]MSYS2 MinGW x64 shell in Visual Studio Code opens up in new window

我想将 MSYS2 MinGW x64 shell 集成为 Visual Studio Code 中的终端。 我在这里遵循了这些说明。 我现在可以从 Visual Studio 中启动 MSYS2 MinGW x64 shell,但它会弹出一个新的 window。但我想将它放在编辑器窗格下。

这是我的 settings.json 文件:

{
"workbench.colorTheme": "Default Dark+",
"codetogether.userName": "Florian",
"git.autofetch": true,
"codetogether.allowUnauthorizedCerts": true,
"haskell.manageHLS": "GHCup",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"terminal.integrated.profiles.windows": {
    "PowerShell": {
        "source": "PowerShell",
        "icon": "terminal-powershell"
    },
    "Command Prompt": {
        "path": [
            "${env:windir}\\Sysnative\\cmd.exe",
            "${env:windir}\\System32\\cmd.exe"
        ],
        "args": [],
        "icon": "terminal-cmd"
    },
    "Git Bash": {
        "source": "Git Bash"
    },
    "MSYS2 MinGW x64": {
        "path": "D:\\Software\\MSYS2\\msys2_shell.cmd",
        "args": []
    }
}

}

我需要在这里改变什么?

我设法通过更换解决了问题

"MSYS2 MinGW x64": {
        "path": "D:\\Software\\MSYS2\\msys2_shell.cmd",
        "args": []
    }

"MSYS2 MinGW x64": {
        "path": "D:\\Software\\MSYS2\\usr\\bin\\bash.exe",
        "args": []
    }

在我的 settings.json 文件中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM