it's because of the cstandard parameter that is probably using c11. go to c_cpp_properties.json and change that parameter to GNU17 or GNU23 . you can look for the file using the command palette