Microsoft’s Visual Studio Code is one of the most popular coding apps around, with the added benefit of being cross-platform.
Unfortunately, on Ubuntu, there’s a pretty nasty bug occurring with the official Snap package delivered via Canonical’s store.
This behavior conflicts with the system trash, in so much as when that’s emptied, the VS Code trash is not. This can lead to it sitting, filling up over time.
The issue was first reported back in November 2024, with users becoming aware that potentially hundreds of gigabytes of their storage were being held hostage by the Snap package’s trash that they’d been unaware of.
We’re now in 2026 and the issue remains. The affected directory can be found by navigating to ~/snap/code/current/.local/share/Trash.
So, if you’ve been using the official Snap package version of VS Code on Ubuntu, what can you do? The easiest solution is to stop. Microsoft offers installers for all major versions of Linux, so for Ubuntu, you can grab the .deb one from the official download page.
There is also a .rpm version if you’re on something like Fedora, and an unofficial Flatpak package, too.
In the grand scheme this bug is probably small fry, but the fact it’s been left unattended for over a year isn’t a good look for the VS Code team. Another day we’re hearing about bugs in Microsoft software. It’d be nice to hear less of these.
Follow Windows Central on Google News to keep our latest news, insights, and features at the top of your feeds!