do you know why doesn't Intellisense work in the STM32 VS Code extension?

do you know why doesn't Intellisense work in the STM32 VS Code extension?
5 Replies
Enthernet Code
Enthernet Code5mo ago
@te0 I've encountered this issue before. Intellisense relies on proper configuration files to function correctly. This are a few things you can check to solve this problem: Check c_cpp_properties.json file and make sure it's correctly configured to point to your include directories and define any necessary macros, you can find it in the .vscode directory of your project. Make sure your include paths and defines are correctly set in c_cpp_properties.json. Lastly ensure that you have the Microsoft C/C++ extension installed in VS Code. This extension provides the necessary tools for Intellisense.
te0
te05mo ago
Hmm, that's the modified content of that file :
{
"version": 4,
"configurations":
[
{
"includePath": [
"${workspaceFolder}/Core/Inc",
"${workspaceFolder}/Drivers/STM32F7xx_HAL_Driver/Inc",
"${workspaceFolder}/Drivers/CMSIS/Device/ST/STM32F7xx/Include",
"${workspaceFolder}/Drivers/CMSIS/Include"
],
"name": "STM32",
"configurationProvider": "ms-vscode.cmake-tools",
"intelliSenseMode": "${default}",
"defines": [
"STM32F4xx",
"USE_HAL_DRIVER",
"STM32F756xx"
]
}
]
}
{
"version": 4,
"configurations":
[
{
"includePath": [
"${workspaceFolder}/Core/Inc",
"${workspaceFolder}/Drivers/STM32F7xx_HAL_Driver/Inc",
"${workspaceFolder}/Drivers/CMSIS/Device/ST/STM32F7xx/Include",
"${workspaceFolder}/Drivers/CMSIS/Include"
],
"name": "STM32",
"configurationProvider": "ms-vscode.cmake-tools",
"intelliSenseMode": "${default}",
"defines": [
"STM32F4xx",
"USE_HAL_DRIVER",
"STM32F756xx"
]
}
]
}
te0
te05mo ago
All I had to do was to create a settings.json file and add {"C_Cpp.intelliSenseEngine": "Tag Parser"}
te0
te05mo ago
The easier the problem the longer it takes to solve it:goodjob:
Enthernet Code
Enthernet Code5mo ago
Good to hear you got it working, Sometimes the simplest fixes can be the most elusive. Switching the IntelliSense engine to "Tag Parser" can definitely help when there are issues with the "Default" engine. Just a heads up, while "Tag Parser" is faster and might work better in some cases, it may not provide as accurate results as the default engine. If you encounter any limitations, you might want to switch back and try fine-tuning the c_cpp_properties.json again.
Want results from more Discord servers?
Add your server