1. Background
I woke up to find that VScode has been automatically updated to version 1.60.0, and the default terminal has changed to Powershell whoosh. How to restore Git Bash to familiar?
2. Configure the parameters
- CTRL + Shift + P open the command panel and type Open Settings json to open the JSON Settings
-
D:\Git\usr\bin\bash.exe” D:\Git\usr\bin\bash.exe” D:\Git\usr\bin\bash.exe
-
The original configuration command is invalid, please delete the original statement or +// into a comment:
"Terminal. Integrated. Shell. Windows" : the path to the terminal. Integrated. AutomationShell. "Windows" : the pathCopy the code
-
New recommendations are configured by default terminal in # terminal. Integrated. Profiles. Windows# create a terminal in the configuration file, And its configuration file name set to # terminal. The integrated. DefaultProfile. Windows# the default values.
-
Next, place the following command directly inside the curly braces of the settings.json file, making sure that the path is your own and nothing else is left untouched:
"terminal.integrated.defaultProfile.windows": "Git-Bash",
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"args": []
},
"Git-Bash": {
"path": "D:\\Git\\usr\\bin\\bash.exe",
"args": []
}
},
"terminal.integrated.tabs.enabled": false,
Copy the code
Results 3.
- Once set up, save the settings.json file, restart VScode, and see the new terminal. Done!
More detailed understanding of how to configure the terminal, please see the official document: code.visualstudio.com/docs/editor…
Refer to the article: zhuanlan.zhihu.com/p/365625019