编译器设置以及自动补全IntelliSense - luckysunfd/vscode_ansi_c_debug_config GitHub Wiki

c_cpp_properties.json (compiler path and IntelliSense settings)

  1. 创建c_cpp_properties.json

    vscode菜单栏,依次选中view, command palette,然后输入c\c++ edit, 选择c\c++ edit configurations(UI), 会打开一个设置页面 ,然后会在项目根目录生成.vscode目录以及c_cpp_properties.json, 默认即可,需要什么再往里面加即可

  2. 编辑一个main.c或者其他c源文件试试吧