I plan on using Espressif core system for building ESP32/8266 projects. And I noticed they suggested installing the extension for a “Clang” app.
I installed that, and the colors in my code changed, lots of program bits like “#define” that used to be color coded, is not gone, lot of my code is suddenly gray and I get no hints on function usage.
I uninstalled that Clang extension, but nothing came back as it was. I hate to delete and reinstall everything again.
I’m sure there must be an easy fix for this, but I haven’t found it yet. I did re-install PIO, and the (few) extensions I did use. But at this point, it’s reinstall VScode and start over.
Thanks!
Who’s ‘they’? They’re wrong, PlatformIO works with the default Microsoft C/C++ extension, not clangd.
I was installing the Espressif IDE extension in PIO, during the install, it (“they”) suggested installing the Clang extension also. So it was (optional I guess) part of the IDE install. It (they) also installed a few other things, one looks like a Linux run time and some other MicroSoft app (I haven’t even looked at it yet, but looks like another emulator)
I was just trying to get closer to using the ESP’s in which I “should” have more direct control over the core. Get away from “Arduino” mode and closer to more basic programming. Learn something new/else.
So after the install, it looked a bit more complicated that I wanted at the moment. When I went back, the color scheme was changed so a lot of the colors vanished or changed. It’s usable of course, I just thought there would be a quick fix I missed.
If you look at the extension marketplace in PIO, there’s quite a few “Clang” /support extensions.
From experience, the PlatformIO extension and the ESP-IDF extension (alongside all the CMake and Clangd extension that brings in) don’t play nice together when activated at the same time – try to deactivate the ones you’re not actively using in the extenions sidebar. Each extension should fully work in their respective environments / projects.