Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Ctrl + Shift + C default terminal in Visual Studio Code?

In Visual Studio Code on windows. The key binding Ctrl + Shift + C opens a new external terminal.

By default, this opens a cmd console. Is there a way to change this default terminal because I want to use git bash instead.

I do know that the command answers to the "ComSpec" environment variable, but changing this variable to the path of the git bash throws this The console closes with the code 126

like image 872
MaxHMoyano Avatar asked Nov 04 '25 05:11

MaxHMoyano


1 Answers

Use this setting:

Terminal > External: Windows Exec

with something like C:\Program Files\Git\bin\bash.exe or wherever your git bash is installed.

That is for opening an external terminal. For the integrated terminal within vscode, use:

Terminal > Integrated > Shell: Windows

with "C:\\\\Program Files\\\\Git\\\\bin\\\\bash.exe"

like image 137
Mark Avatar answered Nov 07 '25 15:11

Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!