When VSCode is used in a Windows environment, the console terminal defaults to CMD.

We can manually change VScode’s terminal to git-bash.

  1. Go to the directory where you installed GitbinFolder. There’s one in therebash.exeFile. Copy the address of the file, for example:D:\Program Files (x86)\Git\Git\bin.

  1. To open VScode, click Settings in the lower left corner (settings).

  1. Click on the top rightOpen Settings(JSON)Icon.

  1. Add to it"terminal.integrated.shell.windows": "D:\\Program Files (x86)\\Git\\Git\\bin\\bash.exe", where the path is the path to the bash.exe file that was assigned.

This completes the terminal setup.

Note: Jane books links: www.jianshu.com/p/9558ec891…