Cannot open source file "esp_bt.h"

Hello,
I have a PIO Project with ESP-IDF V5.1.2. In menuconfig I enabled BT.
Still the esp_bt.h is not found. Even when I manually add the path to the c_cpp_properties.json it doesn’t work.

Can you upload your project to Github? (Without the .pio folder)

unfortunately not, but I can provide you with all the information you need here.

I found out how to fix it. I was changing the sdconfig correctly. But I had to delete the old one. After doing my settings I also right clicked on the saved sdconfig and saved it as devault. After Rebuilding the IntelliSense Index it worked. So my guess is it’s some kind of Menuconfig save error