I have started to learn c
, I tried to use it with VS
Code, but the #include < stdio.h>
is highlighted in green with this error message:
#include errors detected. Please update your includePath. IntelliSense features for this translation unit
(C:\Users\Jerlam\Desktop\C\training\dweight.c) will be provided by the
Tag Parser.
could not open source file "stdio.h" (no directories in search list)
I have seen some topics about this issue, but none of them helped me to fix it.
Here is my c_cpp_properties.json
file in which I have to add the path (of stdio
). In fact the documentation about it is absolutely not beginner friendly.
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
I have added manually this path:
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt"
because it contains the stdio.h
header.
What shall I do? Thanks.