Just installed VSCode and git bash.
I've added the following lines to the settings.json file:
{
"terminal.integrated.shell.windows": "D:\\Program Files\\Git\\git-bash.exe"
}
When I press Ctr+` to open the integrated shell window, instead of opening inside the main editor at the bottom it opens a new window:
Why isn't it showing in the usual place?
Unsplit a split terminal by triggering the Terminal: Unsplit Terminal command through the Command Palette or in the right-click context menu.
Press “Command” or “Ctrl” + “Shift” + “p” to access the “Command Palette.” A search bar will pop-up, enter a search for “View: Toggle Integrated Terminal command,” and select it. This command toggles between displaying the terminal panel in and out of view. In the new terminal window, start entering your Go commands.
According to this vscoode GitHub Issue (#7286):
...
git-bash.exe
is a Windows application (with WinMain as entry), butbash.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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With