VS Code - Cygwin as Integrated Terminal

前端 未结 4 609
时光说笑
时光说笑 2020-12-23 12:01

I would like to use Cygwin as the integrated terminal on Visual Studio Code on my Windows laptop (as this would give me use of the Linux terminal commands git and G++, etc.)

4条回答
  •  滥情空心
    2020-12-23 12:20

    Combining above answers, this is my working configuration.

    {
        "terminal.integrated.shell.windows": "C:\\cygwin\\bin\\bash.exe",
        "terminal.integrated.env.windows": {
            "CHERE_INVOKING": "1"
        },
        "terminal.integrated.shellArgs.windows": [
            "--login",
            "-i"
        ],
    }
    

    {tested at ubuntu 18.04lts, running Windows 7 ultimate 32bt in Virtualbox 5.2.12}

提交回复
热议问题