VS Code - Cygwin as Integrated Terminal

前端 未结 4 591
时光说笑
时光说笑 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:12

    These config settings work for me:

    {
      // start bash, not the mintty, or you'll get a new window
      "terminal.integrated.shell.windows": "C:\\cygwin\\bin\\bash.exe",
      // Use this to keep bash from doing a 'cd ${HOME}'
      "terminal.integrated.env.windows": {
        "CHERE_INVOKING": "1"
      },
      // Make it a login shell
      "terminal.integrated.shellArgs.windows": [
        "-l"
      ],
    }
    

提交回复
热议问题