From https://code.visualstudio.com/docs/editor/integrated-terminal:
By default, the integrated terminal will render using GPU acceleration on most machines. It does this using multiple elements, which are better tuned than the DOM for rendering interactive text that changes often.
However, Electron/Chromium are slower rendering to canvas on some environment and so VS Code also provides a fallback DOM-renderer experience. VS Code will try to detect slow performance and give you the option to change via a notification.
You can also change the rendering directly by setting terminal.integrated.gpuAcceleration in your user or workspace settings. (On Windows/Linux: File > Preferences > Settings)
{
"terminal.integrated.gpuAcceleration`": "off"
}
Something else that might improve performance is to ignore Chromium's GPU blacklist by launching VS Code with code --ignore-gpu-blacklist.
It worked for me, not like a real terminal but better than nothing, I hope this helps!
Answer from Fernando Duz on askubuntu.comFrom https://code.visualstudio.com/docs/editor/integrated-terminal:
By default, the integrated terminal will render using GPU acceleration on most machines. It does this using multiple elements, which are better tuned than the DOM for rendering interactive text that changes often.
However, Electron/Chromium are slower rendering to canvas on some environment and so VS Code also provides a fallback DOM-renderer experience. VS Code will try to detect slow performance and give you the option to change via a notification.
You can also change the rendering directly by setting terminal.integrated.gpuAcceleration in your user or workspace settings. (On Windows/Linux: File > Preferences > Settings)
{
"terminal.integrated.gpuAcceleration`": "off"
}
Something else that might improve performance is to ignore Chromium's GPU blacklist by launching VS Code with code --ignore-gpu-blacklist.
It worked for me, not like a real terminal but better than nothing, I hope this helps!
special thanks to this reddit post.
my problem with vs code: bad performance when writing text and selecting text in the editor. freezes about 0.5 seconds
there are several causes for this problem:
monitor refresh rate
(desktop user case) check you graphics card refresh rate. if you GPU has a max of 60hz then configure your monitor to 60hz.
if you have a secondary external monitor (laptop user case), then:
check your gpu refresh rate.(for example you find 60hz)go to settingsmake secondary monitor primarydisable built-in display(laptop display)set secondary monitor to 60hzreboot
for me, this option with refresh rate worked like a charm. right now its not lagging anymore when typing/selectin text and im using manaro 21 xfce. i know, why talking about manjaro on askubuntu, but i had the same problem in ubuntu 20.04 gnome too, but at that time i wasnt stroke with a refresh rate idea.
vim emulator vs code extension
usually, vs code is handling the keypresses by itself, but when vim extension is installed it overrides the control. vim extension is single-threaded and not very well optimized and when you type you may have bad performance, so uninstall vim extension.
too many extensions
try uninstalling the unimportant extensions or make a sacrifice to reduce the total number.
bad graphics driver
try using other graphics driver. use open-source ones, try performance. use proprietary ones, try performance.
laptop is in power saving mode
try setting your cpu to performance mode.
EDIT date: (11.05.2022)
the problem was my HDD, was too slow. after moved to SSD, performance of writing text is good, because write and read speed from the SSD is faster.
but vs code is still slow. performance is really bad (compared to sublime + im very impatient).
solution: move to sublime text 4.
done.
indeed, vs code is slow
visual studio code - WSL slow for development - Stack Overflow
Everything is going super slow and laggy
Visual Studio Code terminal running slow despite various optimizations - Stack Overflow
VSCode is unresponsive and laggy on Linux
Videos
"terminal.integrated.shellIntegration.enabled to false". Source: Git Bash slow since last update #214407
A more visual fix:

Thanks xGeekoo, LitoHDD, and nbrinks.
I made a complete uninstall of Visual Studio Code and then reinstalled it. It looks like this solved the problem for me...
Ive used VS code for the last 6 years of programming. But recently its gotten so slow. It doesnt find my imports, doesnt format on save, it just lags everything besides the stupid description popups when you hover unimportant elements..
So whats my alternative? Is there some settings I can change to help me out or should i abandon ship and use another IDE?
Hi, I use VS Code from time to time, but lately I've seen that VS Code takes like quite a lot of time to process a 3 lines of JS code. So I want to ask is it a VS issue or something else. I run the same code in the Webstorm IDE and it works perfectly fine. Last time i used vs code was running well.
TL;DR: install it from the provided .deb package here: https://code.visualstudio.com/docs/setup/linux and set ""terminal.integrated.gpuAcceleration":"on" by hitting Ctrl+Shift+P - > User Settings;
Some people suggest turning it to off, but in my case "on" works a lot better (and looks a lot better too).
Story:
Just thought it'd make this post in the vain hope the google algo will pick it up when someone looks this up since I pulled my hair out with it for a week before fixing it.
If anyone else is struggling with making VSCode work half-way decent, know you went wrong when presented with the choice to conveniently install it from the Snap Store.
After going through a whole bunch of threads, tweaking parameters, setting my thinkpad to performance mode (airplane v1 mode), and even trying to fiddle with the niceness level on the system, I was ready to throw in the towel. Even started looking at alternatives -- not surprisingly without much luck since VSC has become the be-all-and-end-all of code development.
And so I looked on with envy at all my Mac using colleagues gleefully using it without any issues while I had to constantly switch back to the Terminal for my stuff.
Then, as I went on looking at trying to bump its niceness level it hit me: it's a SNAP! Having heard about performance issues in the past I figured maybe I can look into it there, that's where I found this post: https://www.reddit.com/r/Ubuntu/comments/93667l/anybody_else_notice_how_slow_snaps_are/
Low and behold, I got the .deb package, installed, no lag on anything, even more so, all the snap settings I had set were still there!
I'm as happy as pie and hopefully someone runs across this thread and doesn't have to waste 10 or so days going down the rabbit hole just to get that terminal to behave.
Hi, I recently started to have a really annoying input lag in vscode. I have the newest version and I tried to disable all extensions and changing some options like GPU accelerated terminal thing and smooth scrolling and it didn't help.
I noticed that libreoffice writer may have a bit of the lag too, but it's not as clear as in vscode so I can't really say for sure.
I have the 22.04 ubuntu
Please follow this guide for help tracking down which extension is causing performance issues.
To start, run code --status from the command line while Visual Studio Code is running. This will print out a list of all Visual Studio Code processes and their resource usage:

Once you track down the bad extension, please file an issue against them.
I'd say that probably one or a couple of your extensions are activating upon startup and taking a long time to activate. You can find out how long each extension is taking to activate by using the Developer: Show Running Extensions command in the command palette, which will show activation times for all enabled extensions, and whether the extension was activated during startup, or later after startup finished. If there are extensions that you don't typically use in all your workspaces that are slow to activate, I'd suggest you disable them globally and enable them on a per-workspace basis.
I'd also check out https://github.com/microsoft/vscode/wiki/Performance-Issues#slow-startup. There are instructions there for using code --prof-startup to gather profile files if you want to report an issue ticket, and instructions on how to read startup timers by using the Developer: Startup Performance command in the command palette.
If your system is slowing down, then I'd also suggest to look at your system monitoring tool and check up on the memory consumption and CPU usage of VS-Code-related/owned processes. VS Code also has a builtin Process Explorer, which you can open with Developer: Open Process Explorer in the command palette, which also shows CPU usage and memory usage.