Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 233
jamescampbell Avatar asked Dec 02 '22 09:12

jamescampbell


2 Answers

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.

like image 52
jamescampbell Avatar answered Dec 28 '22 10:12

jamescampbell


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).

like image 40
code_fodder Avatar answered Dec 28 '22 08:12

code_fodder