Flow Flow - 1 year ago 1263
C Question

Visual Studio Code include file not found in include directory (Windows 10)

I am trying to get intellisense in Visual Studio Code. I downloaded the the C/C++ extension from the marketplace: https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools and also installed MinGW with the packages

. I added the MinGW
folder to
in my Environment variables.

When I add any
statement in my
file, such as
#include <stdio.h>
, Visual Studio Code says:

Include file not found in include directory

Am I not configuring correctly? How can I get intellisense for C/C++?

Answer Source

You have to create a c_cpp_properties.json first (use Ctrl+Shift+P and "C/Cpp: Edit Configurations" command).

Add inlude paths as,

  "configurations": [
      "name": "Win32",
      "includePath": [
      "browse": {
        "limitSymbolsToIncludedHeaders": true,
        "databaseFilename": ""
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download