簡體   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