Reputation: 41
I have some problems with the terminal of VSCode. When I try to open the terminal it's saying that "The terminal shell path "C:\Program Files\Git\bin\bash.exe" does not exist" (image). How can I fix it, help me please.
Upvotes: 4
Views: 10255
Reputation: 31
If you got "The terminal process failed to launch: Path to shell executable "C:\Program Files\Git\bin\bash.exe" does not exist. VSCODE" in VSCode, it's time to change the settings and change the path of the file where your git is located.
I did encountered the same issue, and when I had VSCode in my old system, it had the old path pre-configured, and if you sign-in to your VSCode in new system, you might want to change your path of the file where the git was initially installed.
To do the changes,
terminal.integrated.shell.windows
or Got to "Terminal >> Integerated >> Automation profiles >> Windows
". If you have Linux/ other operating system you will find the same settings.Edit in Settings.json
"Check the image provided below.
Edit in Settings.json
", find the term "terminal.integrated.shell.windows
", and change the path of your git location.This will fix the VSCode issue.
I hope it works for you! Thank you.
Check the image provided below.
terminal.integrated.shell.windows settings
Upvotes: 3
Reputation: 33
Select Default Profile as Git bash by clicking down arrow next to plus icon in the terminal. Please check this documentation https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles
Upvotes: 0