VS Code C/C++ IntelliSense Cache
The Microsoft C/C++ extension for VS Code stores IntelliSense precompiled header data in its ipch cache so the language service can reuse parsed headers, macros, and include state instead of reprocessing large codebases on every file open. Those ipch files grow as you switch branches, SDKs, compilers, or compile_commands.json settings, and stale entries can stop matching the current translation unit configuration. Kudu removes only the VS Code C/C++ IntelliSense ipch cache so the extension can rebuild fresh parsing data automatically when you reopen C and C++ files, without touching source files, settings, accounts, or passwords.
Why clean VS Code C/C++ IntelliSense Cache?
- A changed include path, compiler, or compile_commands.json can leave old ipch data attached to a translation unit, causing false red squiggles and missing symbols until the cache is rebuilt
- Switching branches or SDK versions often invalidates cached macro and header state, which shows up as broken Go to Definition, incorrect autocomplete, or headers reported as unresolved
- Corrupted ipch files can make the C/C++ extension reparse repeatedly, leading to high disk activity, slow file opens, and IntelliSense stuck on "Updating" or "Parsing"
- Large monorepos and generated headers can leave behind many obsolete precompiled header artifacts, consuming gigabytes of disk space even after projects are deleted or moved
- When system headers or toolchains are updated, cached parse results from the previous environment can produce inaccurate diagnostics that disappear after the IntelliSense cache is cleared
- If the extension has accumulated fragmented or mismatched cache entries across many translation units, features like parameter hints and completion ranking become inconsistent until fresh ipch files are generated
Cache paths Kudu targets
Windows
%LocalAppData%/Microsoft/vscode-cpptools/ipch |
macOS
~/Library/Caches/vscode-cpptools/ipch |
Linux
~/.cache/vscode-cpptools/ipch |
Common questions about VS Code C/C++ IntelliSense Cache
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.