Bill Thompon
Bill Thompon

Reputation: 41

How can the terminal on VS Code be fixed?

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

Answers (2)

holisticloki
holisticloki

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,

  1. Open VSCode >> Setting ("Ctrl + comma(,)" ). This will open up your settings in VSCode.
  2. Search for 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.
  3. Click on "Edit in Settings.json"

Check the image provided below.

VSCode Settings for Windows

  1. Once you opened the "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

Noufal
Noufal

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

Related Questions