我正在尝试使用git-bash设置vscode作为https://code.visualstudio.com/docs/editor/integrated-terminal之后的默认终端。我在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"]
}
重新启动后,如果我点击了View - >集成终端,终端闪烁一瞬间关闭。我看到了截图
我该如何解决这个问题?
答案 0 :(得分:0)
以下作品:
{
"python.pythonPath": "C:\\python.exe",
"terminal.integrated.shell.windows": "C:\\Git2\\bin\\sh.exe",
"terminal.integrated.shellArgs.windows": ["--login","-i"]
}