BLACK FRIDAY$9.99$29with code BLACKFRIDAY · ends in--Get Pro →

How to uninstall Visual Studio Code on Mac completely

Dragging Visual Studio Code to the Trash leaves its data behind. Here’s every place it keeps files, which ones matter, and how to remove the rest.

Short answer

Quit VS Code, drag Visual Studio Code from Applications to the Trash, then remove ~/.vscode (installed extensions), ~/Library/Application Support/Code (settings, keybindings, snippets, workspace storage), its caches including the ShipIt update cache, preferences and saved state. Back up your User settings first or use Settings Sync.

Skip the manual steps. Tidy Mac finds this and every other hidden space hog on your Mac in under a minute.
Before you start. Your settings, keybindings and snippets live in ~/Library/Application Support/Code/User. Settings Sync can bring them back on a new install.

Uninstall Visual Studio Code step by step

  1. Turn on Settings Sync, or copy ~/Library/Application Support/Code/User (settings.json, keybindings.json, snippets).
  2. Quit VS Code (Code › Quit Visual Studio Code).
  3. Drag Visual Studio Code from Applications to the Trash.
  4. Move ~/.vscode and ~/Library/Application Support/Code to the Trash.
  5. Move ~/Library/Caches/com.microsoft.VSCode and com.microsoft.VSCode.ShipIt to the Trash.
  6. Move ~/Library/Preferences/com.microsoft.VSCode.plist and its Saved Application State to the Trash.
  7. If you installed the code command, remove it with: rm /usr/local/bin/code
  8. Empty the Trash.

Where Visual Studio Code leaves files

LocationWhat it isAfter uninstalling
~/.vscodeInstalled extensionsSafe
~/Library/Application Support/CodeSettings, keybindings, snippets, workspace storage, logsCheck first
~/Library/Caches/com.microsoft.VSCodeCacheSafe
~/Library/Caches/com.microsoft.VSCode.ShipItDownloaded updatesSafe
~/Library/Preferences/com.microsoft.VSCode.plistPreferencesSafe
~/Library/Saved Application State/com.microsoft.VSCode.savedStateWindow positionsSafe
/usr/local/bin/codeThe code command, if you installed it from the Command PaletteSafe

In Finder choose Go › Go to Folder (Shift-Command-G) and paste a path to open it. Safe means nothing you made is inside; Check first means it may hold the only copy of something. To see how much space they use, run this read-only command in Terminal:

du -sh ~/.vscode ~/Library/Application\ Support/Code ~/Library/Caches/com.microsoft.VSCode ~/Library/Caches/com.microsoft.VSCode.ShipIt ~/Library/Preferences/com.microsoft.VSCode.plist ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState 2>/dev/null

Where VS Code keeps its weight

Extensions live in ~/.vscode/extensions, one folder per extension and version. Language servers and debuggers can make these large. Per-project state (search indexes, local history) lives in workspaceStorage inside ~/Library/Application Support/Code/User, with one folder for every project you’ve opened.

Insiders and other editors are separate

VS Code Insiders uses its own folders (Code - Insiders and ~/.vscode-insiders), so removing one doesn’t affect the other. Editors built on VS Code keep their own folders too.

Your projects are untouched

None of these folders contain your code. Repositories stay wherever you cloned them. More developer cleanup

With Tidy Mac

Tidy Mac’s Apps screen lists every installed app with its size and when you last opened it. Pick Visual Studio Code and Uninstall moves the app and the leftovers it finds in your Library, matched by bundle ID, to the Trash, so you can put them back from History. Quit Visual Studio Code first: Tidy Mac won’t remove an app that’s running. It looks in the standard Library folders apps write to (Application Support, Caches, Containers, Preferences and the like), so check ~/.vscode, /usr/local/bin/code yourself. Already dragged Visual Studio Code to the Trash? The Leftovers tab finds files left by apps you already deleted.

Uninstall apps and their leftovers in one step

See every part of your storage explained, and clear junk to the Trash with Undo. $9.99 $29 once, 2 Macs.

Frequently asked questions

Does dragging Visual Studio Code to the Trash uninstall it completely?

No. It removes the app, but Visual Studio Code leaves 7 kinds of files behind in your Library and elsewhere: installed extensions; settings, keybindings, snippets, workspace storage, logs; cache. The steps above remove them.

What is Visual Studio Code’s bundle ID on Mac?

com.microsoft.VSCode. Most of its leftover files and folders are named after it, which is how you (and Tidy Mac) can tell they belong to Visual Studio Code.

Can I reinstall Visual Studio Code later?

Yes. Download it again from Microsoft. Anything stored in your account online comes back when you sign in; local-only data you removed does not.

Keep reading