VS Code 配置或新增 C 標頭檔案路徑

遠古樂發表於2020-09-29

開啟VS Code 按下Ctrl + Shift + P 輸入 C/C++ 開啟C/C++配置.JSON

在"includePath" 下新增標頭檔案路徑 "C:/Keil_v5/ARM/ARMCC/include"

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**",//新增逗號隔開
                "C:/Keil_v5/ARM/ARMCC/include"//新增標頭檔案路徑
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "compilerPath": "C:\\TDM-GCC-64\\bin\\gcc.exe",
            "cStandard": "gnu11",
            "cppStandard": "c++17",
            "intelliSenseMode": "gcc-x64"
        }
    ],
    "version": 4
}

 

 

 

 

相關文章