skip to Main Content

I have tried all of the following:

  • Reinstalled VS 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 5 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 VS Code is fast.

Why is VS Code using Git Bash as the terminal suddenly really slow?

2

Answers


  1. Chosen as BEST ANSWER

    Ok I solved the problem. Not sure why it went weird in the first place but this is it:

    1. Backup vscode settings.json AND make a note of extensions installed
    2. Uninstall vscode
    3. Uninstall gitbash - removes C:Program FilesGit
    4. Delete all contents:
    • C:UserssteveAppDataRoamingCode
    • C:Userssteve.vscode
    • C:UserssteveAppDataLocalProgramsMicrosoft VS Code
    1. Instal GitBash - with unix options etc
    2. Install Vscode 
      • Edit: settings.json C:UserssteveAppDataRoamingCodeUsersettings.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 folder to project IMPORTANT 
    • cd to folder

    Now the terminal is super fast !!!


  2. This issue seemed to be corrected in the latest VSCode update.

    Version: 1.90.1 (user setup)
    Commit: 611f9bfce64f25108829dd295f54a6894e87339d
    Date: 2024-06-11T21:01:24.262Z
    Electron: 29.4.0
    ElectronBuildId: 9593362
    Chromium: 122.0.6261.156
    Node.js: 20.9.0
    V8: 12.2.281.27-electron.0
    OS: Windows_NT x64 10.0.19045

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search