VSCODE打开野火电机代码需要增加的配置

不增加配置找不到函数的定义

settings.json

{
    "files.associations": {
        "bsp_debug_usart.h": "c"
    }, 
    "C_Cpp.inactiveRegionOpacity": null,   "C_Cpp.intelliSenseEngineFallback": "Disabled", //需要添加的
    "C_Cpp.intelliSenseEngine": "Tag Parser",
}

c_cpp_properties.json

{
    "configurations": [
        {
            "name": "stm32",
            "includePath": [
                "${workspaceFolder}",
                "${workspaceFolder}/Libraries/STM32F4xx_HAL_Driver/Inc",
                "${workspaceFolder}/Libraries/CMSIS/Include",
                "${workspaceFolder}/Libraries/CMSIS/Device/ST/STM32F4xx/Include",
                "${workspaceFolder}/Libraries/CMSIS/Device/ST/STM32F4xx/Include"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE",
                "__CC_ARM",
                "USE_STDPERIPH_DRIVER",
                "STM32F10X_HD"
            ],
            "intelliSenseMode": "windows-msvc-x64",
            "cStandard": "c17",
            "cppStandard": "c++17"
        }
    ],
    "version": 4
}
上一篇:2021-05-01


下一篇:VSCODE运行C程序的时候如何同时打开两个终端