IntelliSense Not Working
MediumNo code completion, red squiggles everywhere, or symbols not recognized.
Complete Configuration & Troubleshooting Guide
Issues with code completion, error squiggles, and symbol recognition
No code completion, red squiggles everywhere, or symbols not recognized.
Standard headers like <iostream> showing as errors.
VS Code using wrong compiler or can't find compiler.
IntelliSense database failed to initialize or is corrupted.
Problems with building, running, and debugging C++ code
Build task fails or Terminal doesn't recognize compiler commands.
Debugger won't start, breakpoints not hit, or crashes immediately.
tasks.json misconfigured or build task not found.
launch.json issues preventing debugging sessions.
Problems with C++ extension and related tools
Microsoft C++ extension not activating or functioning properly.
CMake Tools extension not detecting or configuring projects.
Code Runner extension not compiling or running C++ files.
Conflicts between clangd and Microsoft C++ extensions.
OS-specific configuration and setup problems
MinGW-w64 installation and PATH configuration issues.
Xcode Command Line Tools not installed or configured.
Build-essential package missing or compiler not found.
WSL remote development setup and configuration.
Understanding VS Code's C++ configuration files
IntelliSense configuration: compiler path, include paths, C++ standard
{
"configurations": [{
"name": "Win32",
"includePath": ["${workspaceFolder}/**"],
"compilerPath": "C:/mingw64/bin/gcc.exe",
"cStandard": "c17",
"cppStandard": "c++20"
}]
}
Full Guide →
Build tasks configuration for compiling your code
{
"tasks": [{
"type": "cppbuild",
"label": "C/C++: g++ build",
"command": "/usr/bin/g++",
"args": ["-g", "${file}", "-o", "${fileDirname}/${fileBasenameNoExtension}"]
}]
}
Full Guide →
Debug configuration for GDB, LLDB, or Windows debugger
{
"configurations": [{
"name": "g++ - Debug",
"type": "cppdbg",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"MIMode": "gdb"
}]
}
Full Guide →
Workspace settings for C++ development
{
"files.associations": {
"*.cpp": "cpp",
"*.h": "cpp"
},
"C_Cpp.default.cppStandard": "c++20"
}
Full Guide →
Command Palette: C/C++: Reset IntelliSense Database
Command Palette: C/C++: Log Diagnostics
Command Palette: C/C++: Select a Configuration
Command Palette: Developer: Reload Window
Or try our automatic configuration generator for instant setup