VS Code and Cursor on a Mac: the extensions folder, cached installers and the old versions that stay behind

By the Zofle team · 13 November 2026 · 5 min read

VS Code and Cursor on a Mac: extensions, cached installers and old versions

We measured VS Code and Cursor on a real Mac (a developer Mac mini on macOS 27.0.1) on 13 November 2026. The surprise: the biggest folder isn't workspaceStorage, the one most guides blame. It's the extensions folder, and a second copy of the same extensions sitting in an installer cache.

What we found on one Mac

FolderSizeWhat it is
~/.vscode/extensions2.3 GBInstalled extensions, one folder per version
~/Library/Application Support/Code/CachedExtensionVSIXs876 MBThe downloaded .vsix installers, kept after install
~/Library/Application Support/Code/CachedData54 MBCompiled-code cache, one folder per VS Code build
…/Code/WebStorage73 MBWeb storage used by the editor and extensions
…/Code/Cache + GPUCache + logs38 MBChromium caches and logs
…/Code/User/workspaceStorage0.5 MB (6 folders)Per-project state, chat history, editor state
…/Code/User/globalStorage0.8 MBPer-extension saved data
~/Library/Application Support/Cursor214 MBCursor's equivalent (CachedData 132 MB, User 61 MB)
~/.cursor/extensions99 MBCursor's extensions

Total for the two editors: about 3.5 GB. Two of those rows, the extensions and the installer cache, are 3.2 GB of it.

The old version that stayed behind

Extensions update by installing the new version next to the old one. The old folder is marked as obsolete and removed later. We looked at the extensions folder the day after an update:

Extension (a coding assistant that ships a native binary)VersionIn extensionsIn installer cacheStatus
Extension Aolder build (24 Oct)1.0 GB384 MBListed in .obsolete, still on disk
Extension Anewer build (12 Nov)960 MB332 MBCurrent
Extension B2.1.322321 MB145 MBCurrent (its previous version was already gone)
Extension C26.11064.7 MB1.8 MBCurrent

The hidden file <code>~/.vscode/extensions/.obsolete</code> is a small JSON list of folder names the editor intends to delete. On our Mac it named two: one was already gone, the other was still there, 1.0 GB plus its 384 MB installer copy. That's about <b>1.4 GB, 44% of the 3.2 GB</b>, for a version nobody is using.

Measure it (read-only)

bash
# Biggest extension folders
du -sh ~/.vscode/extensions/* | sort -h | tail

# What the editor already marked for deletion
cat ~/.vscode/extensions/.obsolete

# The installer cache
du -sh ~/Library/Application\ Support/Code/CachedExtensionVSIXs/* | sort -h | tail

# Same for Cursor
du -sh ~/.cursor/extensions ~/Library/Application\ Support/Cursor

Clean up, in this order

  1. Quit the editor completely (Cmd+Q, not just the window). It rewrites extensions.json and .obsolete while it runs.
  2. Start it again and give it a minute. If the obsolete folders disappear on their own, you're done. This is the supported route.
  3. If a folder named in .obsolete is still there after a restart, quit again and move it to the Trash by hand. Only the ones listed in .obsolete, never the current version.
  4. For extensions you don't use at all, uninstall them from the Extensions view (or code --uninstall-extension publisher.name). Don't delete their folder yourself, because extensions.json would still list them.
  5. Installer cache: it's only the downloaded .vsix files. Removing folders there frees space, and the editor downloads again if it needs one for a reinstall. We measured but didn't delete anything on our Mac, so check your own before relying on this.

What about workspaceStorage?

Each project you open gets a hashed folder with its saved editor state and chat history. On our Mac there were six, 24 KB to 220 KB each, 0.5 MB in total. Small. It grows with heavy chat or search history, so it's worth a look, but it wasn't where our gigabytes were.

To find folders for projects you deleted long ago, read the project path inside each one:

bash
cd ~/Library/Application\ Support/Code/User/workspaceStorage
for d in */; do
  f=$(sed -n 's/.*"folder": "file:\/\/\(.*\)".*/\1/p' "$d/workspace.json" 2>/dev/null)
  size=$(du -sk "$d" | cut -f1)
  [ -n "$f" ] && [ ! -e "$f" ] && echo "${size}K  $d  (project gone: $f)"
done

Two of our six folders had no <code>workspace.json</code> at all (24 KB and 48 KB), which is why they didn't show. On our Mac it printed two projects that no longer exist (92 KB and 84 KB). Anything it prints is a candidate: the project folder no longer exists, so the saved state can't be reused. Quit the editor first.

Leave these alone

  • ~/.vscode/extensions/extensions.json and .obsolete (the editor's own bookkeeping).
  • User/settings.json, keybindings.json and snippets (your setup, tiny, and no cache).
  • CachedData folders: each build's folder is rebuilt by the editor, but we saw 54 MB (Code) and 132 MB (Cursor, six build folders), so it's a small win.

Related: Developer disk hogs: Gradle, npm, node_modules and the caches that never go away and macOS System Data: what uses it, why it grows.

Zofle, our free Mac app, measures big folders like these and shows what each one is before you remove anything.

Download Zofle for Mac

Sources

  • Visual Studio Code docs: Extension Marketplace (install, uninstall, command line options).
  • Our own read-only measurements on macOS 27.0.1, 13 November 2026 (du, cat .obsolete).
  • Figures are from one Mac, so yours will differ. The AI-extension names are left out on purpose: the pattern is the same for any large extension that updates often.

Zofle Pro news

People signing up now will get Zofle Pro, with more features, for free when we launch it.

One email when it's ready. No spam, ever.