VSCode Integrated Terminal creates a separate window

后端 未结 7 1712
轻奢々
轻奢々 2021-02-19 11:45

Just installed VSCode and git bash.

I\'ve added the following lines to the settings.json file:

{
    \"terminal.integrated.shell.windows\": \"D:\\\\Prog         


        
7条回答
  •  伪装坚强ぢ
    2021-02-19 12:32

    According to this 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.

    The recommended approach is to use:

    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
    

提交回复
热议问题