VSCode is not detecting ESP-IDF header files
22:28 10 Jul 2026

I have tried everything but nothing has worked so far.

I also tried taking the help of ChatGPT and Claude but it didn't work.

I shifted to older versions of C/C++ extension, deleted the extension of both C/C++ and ESP-IDF, reinstalled them, installed an older version of VSCode from February 2026, made a completely new project and then opened it in VSCode but it still doesn't work.

I installed ESP-IDF through it's CLI tool and built my project through it's Powershell. It should show "driver/gpio.h", "driver/i2c_master" but it doesn't show that.

I am attaching a screenshot of the issue I am facing.

Screenshot

visual-studio-code esp-idf