Is it safe to delete VS Code workspaceStorage?

~/Library/Application Support/Code/User/workspaceStorage · Check first

What it is

Per-workspace state that VS Code and extensions keep, one folder per opened project.

Can you delete it?

Sometimes, check what is inside first. Folders for projects you deleted are leftovers. Deleting active ones resets their editor state and some extension data.

How to clean it safely

  1. Quit VS Code.
  2. Delete folders whose workspace.json points to projects that no longer exist.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/"Library/Application Support/Code/User/workspaceStorage" 2>/dev/null

Step-by-step guide: Developer caches on a Mac →

Questions

Is it safe to delete ~/Library/Application Support/Code/User/workspaceStorage?

Sometimes, check what is inside first. Folders for projects you deleted are leftovers. Deleting active ones resets their editor state and some extension data.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac