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

To free space safely, find the specific folder using your operating system’s storage tools, identify whether it belongs to an extension, a VS Code profile, a portable installation, or a remote environment, and use that extension’s documented cleanup controls. Avoid routinely deleting VS Code’s generic workspace or global storage folders: they can contain extension-managed state, not just disposable cache files.

Find out what is using the space

Start with your operating system’s storage tools and locate the specific large directory. The official documentation cited here does not establish a built-in VS Code disk-usage analyzer, so do not assume every large folder associated with VS Code is a cache.

Before removing anything, determine which VS Code instance owns the data. It may belong to your usual local profile, a portable installation, or a remote development environment. Those distinctions affect where files are stored and which cleanup action is appropriate.

Understand which VS Code data is safe to change

Workspace and global extension state

Extensions can keep data at different scopes. The VS Code Extension API exposes workspaceState, globalState, storageUri, and globalStorageUri for workspace-specific and global extension data. VS Code manages workspace storage and restores it when the same workspace is opened again, according to its extension data-storage guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#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

That does not make these directories disposable cache folders. The reviewed official guidance does not provide a blanket safe-delete instruction for generic workspace-storage or global-storage directories. Preserve extension-managed state unless the extension’s own documentation gives a specific cleanup procedure and you understand what data it affects.

Settings and workspace configuration

Settings files are configuration, not generic caches. User settings are stored at these platform-specific paths:

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: %APPDATA%CodeUsersettings.json
  • macOS: $HOME/Library/Application Support/Code/User/settings.json
  • Linux: $HOME/.config/Code/User/settings.json

Project settings for a single-folder workspace are commonly in .vscode/settings.json. Multi-root workspace settings can be stored in the .code-workspace configuration file. See the VS Code documentation for settings and workspace configuration. Do not delete these files as a cache-clearing measure.

Remove extensions you no longer need

If the large directory is an installed extension you no longer use, remove it through VS Code’s Extensions view or the documented command-line workflow. To identify installed extensions, run code --list-extensions; to remove one, run code --uninstall-extension publisher.extension, replacing the example identifier with the extension’s actual publisher and name. The official extension management documentation describes extension installation paths and management.

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.
Rank #3
Sale
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

By default, installed extensions are stored under %USERPROFILE%.vscodeextensions on Windows and ~/.vscode/extensions on macOS and Linux. The location can differ if VS Code was launched with --extensions-dir or the VSCODE_EXTENSIONS environment variable. Prefer the Extensions view or uninstall command over deleting extension folders manually, so VS Code can manage the removal.

Clear a cache using its extension’s controls

There is no supported universal “clear all VS Code caches” procedure in the cited documentation. A cache path or reset control for one extension should not be applied to another. Check the current documentation for the extension that owns the files.

Rank #4
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • 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.

Microsoft C/C++ IntelliSense cache

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

  • 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/

These paths apply to the C/C++ extension, not to VS Code caches generally. Its setting C_Cpp.intelliSenseCacheSize controls an approximate cache-size limit; setting it to 0 disables that cache. Consult the extension’s C/C++ FAQ for the setting and cache details. The limit is approximate, not a promise of a particular amount of disk space reclaimed.

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.
Best Value
Sale
Samsung T7 Portable SSD 1TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s
  • 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³
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Account for portable and remote installations

Portable mode

In portable mode, VS Code stores data beside the application: in a data directory for supported Windows ZIP and Linux TAR.GZ distributions, or code-portable-data on macOS. This data can include user data, extensions, and session information, so do not treat the whole directory as disposable. On Windows, portable mode applies to the ZIP distribution, not the User or System installer. See the official portable mode documentation for platform and installation requirements.

Remote windows

When you use SSH, a dev container, or WSL, the extension environment can differ from your local one. VS Code’s Settings Sync documentation notes that extensions are not synchronized to or from remote windows. Check whether the space is being used locally or in the remote environment before removing anything; deleting a local extension does not necessarily address remote storage. See Settings Sync documentation.

Use this safe cleanup sequence

  1. Use your operating system’s storage tools to identify the exact directory consuming space.
  2. Determine whether it belongs to your local profile, a portable installation, or a remote environment.
  3. If it is an extension you no longer need, remove it through the Extensions view or code --uninstall-extension publisher.extension.
  4. If it is a known extension cache, follow that extension’s current documentation. For C/C++, review C_Cpp.intelliSenseCacheSize and its documented cache paths.
  5. Leave generic workspace/global storage, user settings, .vscode configuration, and .code-workspace files in place unless there is extension-specific guidance for the data you intend to remove.
  6. Restart or reopen the affected workspace, then check the storage tools again and confirm the extension behaves as expected.

If you use Settings Sync and need to recover local settings data, VS Code provides the command Settings Sync: Open Local Backups Folder. It opens the local backup location; it is not a general cache-cleanup command.

Quick Recap

Bestseller No. 2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
From Sandisk, a brand professional photographers trust to take on assignments.
$165.70
SaleBestseller No. 4
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.99

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.

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