I have tried all of the following:
Reinstalled Visual Studio Code
Cleared all roaming cache
removed all extensions
updated these settings.json
{
"terminal.integrated.defaultProfile.windows": "GitBash",
"terminal.integrated.rendererType": "auto",
"terminal.integrated.allowChords": false,
"terminal.integrated.drawBoldTextInBrightColors": false,
"terminal.integrated.experimentalLinkProvider": false,
"terminal.integrated.gpuAcceleration": "off",
}
Whenever I press Enter in the terminal, it takes nearly five seconds to return to the command prompt.
I think this problem began when I had Docker running in the background and there was some lag and I hit Enter several times to put space between my last failed test. Now it's always taking so long. I am using Git Bash as my terminal. Git Bash terminal outside of Visual Studio Code is fast.
Why is Visual Studio Code using Git Bash as the terminal suddenly really slow?
OK, I solved the problem. I am not sure why it went weird in the first place, but this is it:
Backup Visual Studio Code settings.json and make a note of extensions installed
Uninstall Visual Studio Code
Uninstall Git Bash. It removes C:\Program Files\Git
Delete all contents:
Instal Git Bash with Unix options, etc.
Install Visual Studio Code
settings.json
C:\Users\steve\AppData\Roaming\Code\User\settings.json
"terminal.integrated.profiles.windows": {
"GitBash": { "path": "C:\\Program Files\\Git\\bin\\bash.exe", "icon": "terminal-bash" }
},
"terminal.integrated.defaultProfile.windows": "GitBash",
"terminal.integrated.rendererType": "auto",
"terminal.integrated.allowChords": false,
"terminal.integrated.drawBoldTextInBrightColors": false,
"terminal.integrated.experimentalLinkProvider": false,
"terminal.integrated.gpuAcceleration": "off",
install extensions
add the folder to project IMPORTANT
cd to the folder
Now the terminal is super fast!!!