I am having some trouble with IntelliSense and the use of multiple environments with different platforms.
If I rebuild the index with the “Rebuild IntelliSense Index” command. Only include paths for the first environment are added to
Therefore IntelliSense does miss a lot of paths for the other other environments.
I tried adding all environments to the
default_envs option but it had no effect.
How do I make sure PlatformIO adds all include paths of all environments and their platforms to
.vscode/c_cpp_properties.json so IntelliSense works correctly?
[platformio] default_envs = slave, master [env:master] platform = espressif32 board = lolin_d32_pro framework = arduino [env:slave] platform = teensy framework = arduino board = teensy40