Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 101385

Visual Studio Code includePath

$
0
0

I'm trying to build C/C++ in Visual Studio Code. I installed C/C++ and all the relevant extensions.

#include <stdio.h>
int main() {
    printf("Test C now\n");
    return 0;
}

But there's a green line under #include <stdio.h> saying "Add include path to settings". When I click it, it moves over to "c_cpp_properties.json".

How and where can I add include paths in the configurations below?

"configurations": [
    {
        "name": "Mac",
        "includePath": ["/usr/include"]
    }
]

Viewing all articles
Browse latest Browse all 101385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>