VSCode Integrated Terminal creates a separate window

后端 未结 7 1626
轻奢々
轻奢々 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:35

    I was infact looking for the solution to this exact problem. @JBD said it correctly however I would just like to add that the git-bash.exe file is kept seperate in the normal program folder of git.

    {
        "terminal.integrated.shell.windows": "D:\\Program Files\\Git\\git-bash.exe" 
    }
    

    but what you need to link within vs Codes settings is a different file which will enable git bash to run within the vs code terminal. The path to that is in the "bin" folder within the "Git" folder.

    {
    "terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe" 
    }
    

    This will allow your git bash to run from within the terminal window of VS Code

提交回复
热议问题