简体   繁体   中英

Epipe error with VS code terminal and git bash

在此处输入图片说明

I'm trying to set up vscode with git-bash as the default terminal following https://code.visualstudio.com/docs/editor/integrated-terminal . I have set up my workspace with the following code in settings.json:

// Place your settings in this file to overwrite default and user settings.
{
"python.pythonPath": "C:\\python.exe",
"terminal.integrated.shell.windows": "C:\\Git2\\bin\\sh.exe",
"terminal.integrated.shellArgs.windows": ["--login -i"]
}

After restarting, if I hit View - > Integrated terminal, The terminal flashes open for a split second and closes. I see the screenshot

How can I fix this?

The following works:

{
"python.pythonPath": "C:\\python.exe",
"terminal.integrated.shell.windows": "C:\\Git2\\bin\\sh.exe",
"terminal.integrated.shellArgs.windows": ["--login","-i"]
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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