'How to fix VS Code integrated terminal choppy and laggy on macOS Big Sur?

Typing in the integrated terminal in VS Code on Big Sur is very annoyingly laggy and slow. This is the only application that experiences this, iTerm, etc. do not experience this issue. I tried disabling all plug-ins, themes, fonts, etc. to try to get to root cause.



Solution 1:[1]

Based on the thread here I was able to successfully mitigate the issue by running this command: codesign --remove-signature /Applications/Visual\ Studio\ Code.app/Contents/Frameworks/Code\ Helper\ \(Renderer\).app and restarting VS Code, the lag is completely gone and everything is back to normal.

If you trust VS Code developer then removing the signature should not be an issue but YMMV.

For me, I was super happy to find this solution, as it was driving me crazy.

Solution 2:[2]

Probably an update on Konstantin Popovskikh's answer that was deleted.

In settings.json, setting this:

  "terminal.integrated.gpuAcceleration": "off",

Helped a lot for me, however it does have the side effect of not rendering underscores while typing - but for me, this is the lesser of two evils.

Note: You don't appear to have to reload the session you can just save the .json file and the terminal will update (you can visibly see it change slightly).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jamescampbell
Solution 2 code_fodder