加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

bash – VSCode集成终端创建一个单独的窗口

发布时间:2020-12-15 17:00:11 所属栏目:安全 来源:网络整理
导读:刚刚安装了VSCode和git bash. 我已将以下行添加到settings.json文件中: { "terminal.integrated.shell.windows": "D:Program FilesGitgit-bash.exe" } 当我按下Ctr`打开集成的shell窗口时,它不会在底部的主编辑器内打开,而是打开一个新窗口: 为什么
刚刚安装了VSCode和git bash.

我已将以下行添加到settings.json文件中:

{
    "terminal.integrated.shell.windows": "D:Program FilesGitgit-bash.exe" 
}

当我按下Ctr`打开集成的shell窗口时,它不会在底部的主编辑器内打开,而是打开一个新窗口:

为什么不在通常的地方出现?

根据这个 vscoode GitHub Issue (#7286):

git-bash.exe is a Windows application (with WinMain as entry),but bash.exe is a console application (with main as entry). To be used as integrated shell,the executable must be a console application,so that stdin/stdout/stderr can be redirected.

推荐的方法是使用:

"terminal.integrated.shell.windows": "C:Program FilesGitbinbash.exe"

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读