Apps

VS Code C/C++ IntelliSense Cache

The Microsoft C/C++ extension for VS Code stores IntelliSense precompiled header data in its ipch cache so it can parse large codebases faster without rebuilding the same translation-unit state on every file open. Those files contain cached compiler front-end state derived from headers, include paths, macros, and configuration details, and they can grow large or become mismatched after toolchain, SDK, or compile_commands changes. Kudu removes only the disposable ipch IntelliSense cache so the extension can rebuild it automatically when you reopen C and C++ files, without touching source code, settings, workspaces, or debug profiles.

Why clean VS Code C/C++ IntelliSense Cache?

  • Stale ipch data after changing include paths, defines, or compiler arguments can leave bogus red squiggles in files that actually compile cleanly
  • Switching SDKs, compilers, or C++ standards can make cached parse state disagree with the current configuration, showing missing symbols and broken Go to Definition until the cache is rebuilt
  • Large header-heavy projects can accumulate many precompiled IntelliSense shards in ipch, causing unexpectedly high disk usage under the vscode-cpptools cache folder
  • Corrupted IntelliSense cache files can make a file take unusually long to become colorized and indexed when opened, then recover after regeneration
  • Branch changes that rename headers or alter generated code can leave the extension resolving old declarations, so autocomplete suggestions feel wrong or incomplete
  • Repeated reparsing against fragmented or outdated cache entries can keep the C/C++ language service busy, which users notice as delayed hover info and sluggish completion popups
  • When compile_commands.json or configuration providers change, old cached translation-unit state can persist until cleared, leading to diagnostics that do not match the active build
What gets cleaned

Cache paths Kudu targets

Windows

%LocalAppData%/Microsoft/vscode-cpptools/ipch

macOS

~/Library/Caches/vscode-cpptools/ipch

Linux

~/.cache/vscode-cpptools/ipch
Frequently asked

Common questions about VS Code C/C++ IntelliSense Cache

Free & open source

Download Kudu and reclaim your disk space.

Available on Windows, macOS, and Linux. No account required, no feature gates, no telemetry without consent. All cleaning targets are open source and community-auditable.