Microsoft seems to be gobbling up PC resources away from Windows — VS Code on Ubuntu could be eating up hard drive space

A screenshot of Visual Studio Code showing a toml file
VS Code's official Snap package on Ubuntu has some issues. (Image credit: Windows Central | Edited with Gemini)

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.

VS Code has versions for basically every platform you could need. (Image credit: Windows Central)

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.

A banner that reads "It's Poll Time" and shows a graphic with a dial on it pointing to a mid-range hue on a gradient.


Click to follow Windows Central on Google News

Follow Windows Central on Google News to keep our latest news, insights, and features at the top of your feeds!


TOPICS
Richard Devine
Managing Editor - Tech, Reviews

Richard Devine is a Managing Editor at Windows Central with over a decade of experience. A former Project Manager and long-term tech addict, he joined Mobile Nations in 2011 and has been found on Android Central and iMore as well as Windows Central. Currently, you'll find him steering the site's coverage of all manner of PC hardware and reviews. Find him on Mastodon at mstdn.social/@richdevine

You must confirm your public display name before commenting

Please logout and then login again, you will then be prompted to enter your display name.