|
|
本帖最后由 wy_nb 于 2026-5-7 17:42 编辑
修改编辑配置文件:c_cpp_properties.json
{
"configurations": [
{
"name": "Win32-Debug",
"compileCommands": "${workspaceFolder}/out/BfSpark/Debug/compile_commands.json",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.19041.0",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
},
{
"name": "Win32-Release",
"compileCommands": "${workspaceFolder}/out/BfSpark/Release/compile_commands.json",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"NDEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.19041.0",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64"
}
],
"version": 4
}
关键就是 "compileCommands": "${workspaceFolder}/out/..../compile_commands.json"
|
|