Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk4 min

How to Free Disk Space Used by Visual Studio Code Workspace and Extension Caches

Learn how to identify large VS Code folders, remove unused extensions, and manage extension-specific caches while protecting workspace state and settings.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

There is no well-supported universal “clear all VS Code caches” command. First identify which folder is using space, then choose a cleanup method that matches its owner: uninstall an extension you no longer need, or use that extension’s documented cache controls. Avoid routinely deleting workspaceStorage or globalStorage; these can contain extension-managed state, not disposable cache files.

Find what is using disk space before deleting anything

Use your operating system’s storage tools to locate the large directory. VS Code’s reviewed documentation does not establish a built-in disk-usage analyzer. Before acting, determine whether the folder belongs to your current VS Code profile, a portable installation, or a remote environment such as SSH, a dev container, or WSL. Those distinctions affect where data lives and what a local cleanup can reach.

As an Amazon Associate I earn from qualifying purchases.

VS Code distinguishes workspace-specific extension state from global extension state. Its Extension API exposes workspaceState, globalState, storageUri, and globalStorageUri for these different storage scopes. The API says, “VS Code manages the storage and will restore it when the same workspace is opened again.” That is not a blanket instruction to delete the directories: the reviewed documentation does not provide a general safe-delete procedure for workspace or global storage. VS Code Extension API: Data Storage.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Remove extensions you no longer use

If the space belongs to an extension you do not need, remove it through VS Code’s Extensions view rather than deleting files from its installation folder. To identify installed extensions from the command line, use code --list-extensions; uninstall a specific one with code --uninstall-extension publisher.extension, replacing the example identifier with the extension’s actual publisher and name. The documented default per-user extension folders are %USERPROFILE%.vscodeextensions on Windows and ~/.vscode/extensions on macOS and Linux. The location can differ if --extensions-dir or VSCODE_EXTENSIONS is configured. VS Code: Uninstall extensions.

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C

Clear a cache using the owning extension’s instructions

Cache locations and cleanup controls are extension-specific. Do not treat one extension’s path or setting as a general VS Code cache-cleaning method. Check the current documentation for the extension that owns the files; if it documents a supported clear operation or setting, use that rather than deleting unrelated storage.

Microsoft C/C++ IntelliSense cache

The Microsoft C/C++ extension documents its IntelliSense cache, named ipch, in these locations:

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.
  • Windows: %LocalAppData%/Microsoft/vscode-cpptools
  • Linux: $XDG_CACHE_HOME/vscode-cpptools/, or $HOME/.cache/vscode-cpptools/ if XDG_CACHE_HOME is not defined
  • macOS: $HOME/Library/Caches/vscode-cpptools/

For this extension, the C_Cpp.intelliSenseCacheSize setting controls an approximate cache-size limit; setting it to 0 disables the IntelliSense cache. The limit is approximate, not a guarantee of a particular amount of reclaimed disk space. These paths and controls apply to the C/C++ extension, not to VS Code extensions generally. See the C/C++ extension FAQ.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep settings and workspace configuration intact

Settings files configure VS Code; they are not generic cache targets. User settings are stored in different locations by operating system:

Rank #3
SSK Portable SSD 500GB External Solid State Hard Drive USB C Up to 1050MB/s
  • Capacity Display Variance: 500GB external ssd often appears as around 465GB on Windows. MacOS can show full 500 GB capacity. This is binary calculation difference and doesn’t affect SSD hard drive actual physical storage
  • 1050 MB/s Speed: Instantly access to your files with blazing-fast 10Gbps external SSD read up to 1050MB/s and write up to 1000MB/s. LED Light indicates USB SSD instant activity
  • Data Security: Solid state drives S.M.A.R.T. health diagnostics​ and adaptive TRIM optimizing data block management ensures consistent write speeds and extends the longevity of the portable SSD
  • USB-C & USB-A Cable: Both cables featuring rapid USB 3.2 Gen2, this USB SSD effortlessly bridges devices, enabling seamless cross-platform file transfers and backup between computers, smartphones, tablets and iPhone
  • Always Fast: No slowdowns for large file transfers. With SLC caching (25% of current available capacity allocated as high-speed cache), this external SSD delivers steady 10Gbps for transfers within the cache capacity
  • Windows: %APPDATA%CodeUsersettings.json
  • macOS: $HOME/Library/Application Support/Code/User/settings.json
  • Linux: $HOME/.config/Code/User/settings.json

Single-folder project settings are commonly in .vscode/settings.json. A multi-root workspace can store settings in its .code-workspace file. Preserve these files unless you intend to change configuration. See VS Code settings and VS Code workspaces.

Check portable and remote installations

Portable mode

Supported portable installations keep VS Code data beside the application: in a data directory for supported Windows ZIP and Linux TAR.GZ distributions, or code-portable-data on macOS. That data can include user data, extensions, and session information, so do not assume the folder is disposable. On Windows, portable mode is supported for the ZIP distribution, not the User or System installer. Installation type matters; see VS Code portable mode.

Rank #4
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Remote windows and Settings Sync

Extensions are not synchronized to or from remote windows such as SSH, dev containers, and WSL. A local extension listing or cleanup may therefore not describe what is installed in the remote environment. Settings Sync also provides local backups: run Settings Sync: Open Local Backups Folder from the Command Palette to open them. Check which environment owns the large folder before removing data. See VS Code Settings Sync.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

A safe cleanup sequence

  1. Use your operating system’s storage tools to identify the specific large directory.
  2. Establish whether it belongs to your current profile, a portable installation, or a remote environment.
  3. If an installed extension is no longer needed, uninstall it through the Extensions view or with code --uninstall-extension publisher.extension.
  4. If the directory is a known extension cache, follow that extension’s current documentation. For Microsoft C/C++, adjust C_Cpp.intelliSenseCacheSize if an approximate limit or disabling the cache suits your needs.
  5. Leave workspace/global extension state, settings files, .vscode configuration, and .code-workspace files alone unless you have extension-specific guidance and understand the effect of removing them.
  6. Restart or reopen the affected workspace, confirm the extension behaves as expected, and check disk usage again.

The official sources cited here do not establish a general amount of space any cleanup will recover. The result depends on the specific files present and the extension or installation that owns them.

Best Value
Sale
Samsung T7 Portable SSD 1TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s | Reliable External Solid State Drive Storage for Gaming, Students, Professionals (MU-PC1T0T/AM)
  • MADE FOR THE MAKERS: Create; Explore; Store; The T7 Portable SSD delivers fast speeds and durable features to back up any endeavor; Build your video editing empire, file your photographs or back up your blogs all in an instant
  • SHARE IDEAS IN A FLASH: Don’t waste a second waiting and spend more time doing; The T7 is embedded with PCIe NVMe technology that brings fast read and write speeds up to 1,050/1,000 MB/s¹, making it almost twice as fast as the T5
  • ALWAYS MAKE THE SAVE: Compact design with massive capacity; With capacities up to 4TB, save exactly what you need to your drive – from large working files to game data and everything in between
  • ADAPTS TO EVERY NEED: Whether using a PC or mobile phone, count on the T7 for extensive compatibility²; It’s a true team player when it comes to heavy-duty application usage or file-saving
  • HI RESOLUTION VIDEO RECORDING: Record Ultra High Resolution (4K 60fs) videos directly onto the T7 Portable SSD with your favorite camera or mobile devices; Supports iPhone 15 Pro Res 4K at 60fps video and more³

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.