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.com
Top answer
1 of 6
17

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!

2 of 6
4

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:

  1. check your gpu refresh rate. (for example you find 60hz)
  2. go to settings
  3. make secondary monitor primary
  4. disable built-in display (laptop display)
  5. set secondary monitor to 60hz
  6. reboot

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

🌐
GitHub
github.com › microsoft › vscode › issues › 166960
VS Code is very slow and laggy on Linux · Issue #166960 · microsoft/vscode
November 22, 2022 - Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.73.1 OS Version: Ubuntu 22.04.1 LTS Steps to Reproduce: Connect to Ubuntu via ssh by using e.g. MobaXterm 22.2. Internet is not available on the Ubuntu machi...
Author   njesp
Discussions

visual studio code - WSL slow for development - Stack Overflow
In general, it shouldn't be "slow". SUGGESTIONS: 1) Run a few Linux commands (ls, top, cat somefile, etc.) from a terminal window. See if they're "slow". 2) "cd" to your project directory, and run git status from the Linux command line. Is it any "slower" than running "git status" inside VSCode? More on stackoverflow.com
🌐 stackoverflow.com
Everything is going super slow and laggy
Type: Performance Issue since this mornig when i updated vs code, it became super laggy, slow, almost unusable. VS Code version: Code 1.90.1 (611f9bf, 2024-06-11T21:02:43.666Z) OS version: Linux x6... More on github.com
🌐 github.com
14
June 14, 2024
Visual Studio Code terminal running slow despite various optimizations - Stack Overflow
I'm experiencing significant slowdowns with the terminal in Visual Studio Code on my Windows system, and I'm looking for further insights or solutions. Despite trying multiple optimizations, the is... More on stackoverflow.com
🌐 stackoverflow.com
VSCode is unresponsive and laggy on Linux
Issue Type: Bug VSCode has recently become very sluggish and lags a lot while working. From time to time, it becomes sluggish and very slow to perform. I'm using it on Linux. Tried updating to ... More on github.com
🌐 github.com
8
September 8, 2021
🌐
Quora
quora.com › What-could-be-causing-Visual-Studio-Code-to-have-a-slow-start-on-Linux
What could be causing Visual Studio Code to have a slow start on Linux? - Quora
Answer (1 of 2): Usually resource usage, specifically CPU consumption. If there are several processes running in the background, try closing those and see if it helps. I would also recommend checking for any malicious processes that could consume ...
🌐
VSCode.one
vscode.one › make-vscode-faster
Here's How to Make VSCode Faster
This is the first step to fixing the problem. We have to understand what's causing it in the first place. If we can't do that, it's going to be very hard to fix anything. Here are some things that may be causing VSCode to run slowly, and some proposed solutions.
Top answer
1 of 1
18

The most common cause of performance issues in WSL2 is when attempting to access files on the Windows drive (e.g. through /mnt/c/...). If the project you are working with is on the Windows drive, that would most likely explain the root issue. See my answer to, Why is WSL extremely slow when compared with native Windows NPM/Yarn processing? for details.

As one example from that post, Git actions on the Windows drive when running through WSL2 can take nearly two orders of magnitude longer than when on the Ext4 filesystem. The "normal" hit to performance from running on the Ext4 filesystem under WSL2 varies depending on the type of files being access, but typically runs between 10-50%. For day-to-day development use, you really shouldn't "notice" it. "Painstakingly slow" sounds like the "Windows drive" issue.

However, I'm not totally convinced this is the problem in your case. You mentioned you were able to open your project through VSCode (presumably through WSL), and it should have displayed a warning toast about the performance when you/if you opened a project on a Windows drive. It's possible that you missed it, of course, or possibly habitually clicked-to-dismiss (we all do!).

VSCode can operate in two different "modes" when it comes to WSL:

  • "Windows" (normal) mode
  • "WSL" (extension/remote) mode

Assuming you have the WSL extension installed, VSCode will detect when you started it under WSL and automatically switch to Remote mode. It will also automatically switch into Remote when re-opening a project that was originally Remote.

The general rule is:

  • Open projects in normal/Windows mode when using Windows tools. Store these projects on a Windows drive.
  • Open projects in WSL/Remote mode when you are using Linux tools (processes, filesystems, etc.). Store these projects in the virtual SDD Ext4 filesystem that WSL2 provides (e.g., under your Linux $HOME directory).

You can tell which mode you are in in VSCode by looking at the bottom left corner of the VSCode window. There is a toolbar option on the far left that looks like ><, slightly offset. If you are in "Normal" mode, it will simply be the ><. If you are running under WSL, you'll see the name of the WLS distribution there as well. Hovering will provide more detail.

🌐
GitHub
github.com › microsoft › vscode › issues › 215546
Everything is going super slow and laggy · Issue #215546 · microsoft/vscode
June 14, 2024 - Type: Performance Issue since this mornig when i updated vs code, it became super laggy, slow, almost unusable. VS Code version: Code 1.90.1 (611f9bf, 2024-06-11T21:02:43.666Z) OS version: Linux x64 6.5.0-35-generic snap Modes: System In...
Author   checco296
Find elsewhere
🌐
GitHub
github.com › microsoft › vscode › issues › 132617
VSCode is unresponsive and laggy on Linux · Issue #132617 · microsoft/vscode
September 8, 2021 - Issue Type: Bug VSCode has recently become very sluggish and lags a lot while working. From time to time, it becomes sluggish and very slow to perform. I'm using it on Linux. Tried updating to ...
Author   djnotes
🌐
Super User
superuser.com › questions › 1849026 › visual-studio-code-very-slow-and-crashing-on-parallels-ubuntu-vm
linux - Visual Studio Code very slow and crashing on Parallels Ubuntu VM - Super User
July 14, 2024 - Was resolved by rebuilding the VM from scratch. The first time around, I allowed VSCode to update or install or something while Ubuntu itself was updating, and this proved to be a no-no. ... same issue, extremely slow leading, and after that any open file - vscode just not responding.
🌐
GitHub
github.com › microsoft › vscode › issues › 251540
VS Code is performing slow because of Chromium Technology · Issue #251540 · microsoft/vscode
June 15, 2025 - I think it is only due to Chromium technology. Chromium makes it slow. I have a suggestion that developers should use webkit2gtk for rendering vscode in linux. They should give it at least a try.
Author   alizaincodes
🌐
Quora
quora.com › Why-is-VS-Code-slow
Why is VS Code slow? - Quora
Profile startup and extension host: Help → Open Process Explorer and use the Extension Host profile (in Developer Tools) to see slow activation scripts. Watcher and OS limits: on Linux/macOS check inotify limits and VS Code’s file watcher logs; on Windows check Defender/antivirus interference.
🌐
Reddit
reddit.com › r/ubuntu › slow / sluggish vscode terminal on ubuntu 20.04
r/Ubuntu on Reddit: Slow / sluggish vscode terminal on ubuntu 20.04
February 17, 2023 -

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.

🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › software & applications
Word of Advice: VSCode Is Laggy on Linux, Use VSCodium Instead!!! - Linux Mint Forums
July 26, 2025 - It used to work just fine on linux, but after the recent updates, it was very laggy especially starting up. So I decided to switch to a fork called visual studio codium. It wasn't as laggy even with the reinstalled extensions. I even managed to figure out how to reinstall extensions that weren't available in codium's marketplace. But you have to keep vscode installed for it to work.
🌐
Reddit
reddit.com › r/ubuntu › input lag in vscode and possibly other programs
r/Ubuntu on Reddit: Input lag in vscode and possibly other programs
June 17, 2024 -

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

🌐
GitHub
github.com › microsoft › vscode › issues › 192493
Slow startup time on 1.82.0 · Issue #192493 · microsoft/vscode
September 7, 2023 - With all extensions disabled, VS Code 1.82.0 takes 4x more time to start than VS Code 1.81.1, due to a slow renderer : 1.81.1 System Info Code: 1.81.1 (6c3e3db) OS: linux(6.0.19-060019-generic) CPU...
Author   x-hgg-x
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › other topics
Any application load is very slow - Linux Mint Forums
December 23, 2023 - Welcome to the Linux Mint support forums! ... Questions about other topics - please check if your question fits better in another category before posting here · Forum rules Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation. ... I recently switch from Ubuntu to Mint. And I noticed, that on Mint all of my app that I use regularly (Alacritty, Chrome, Vscode) run on Mint very slow...
🌐
GitHub
github.com › microsoft › vscode › issues › 257456
VS Code is really slow! · Issue #257456 · microsoft/vscode
July 23, 2025 - Type: Performance Issue Hi there, I've been dealing with VS Code performance issues for weeks now, and I'm puzzled because my laptop is brand new with 64GB of RAM. I even switched from Windows to Linux thinking that might solve it, but t...
Author   echrs
Top answer
1 of 2
14

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.

2 of 2
3

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.