Automatically grey out disabled code by Preprocessor Directives (#define)
Posted: Fri Apr 21, 2023 4:59 pm
Hello. I'm in the transition of porting my whole project from Platformio+Arduino to IDF VS Code Extension+IDF+Arduino
I miss a feature that I'm not sure if it's Platformio specific. In my project I configure how the code is compiled enabling and disabling #defines (preprocessor directives).
Previously when I commented out a #define VSCode automatically greyed out the code that was disabled by a preprocessor directive.
Now with this change to plain IDF+Arduino As A Component (using the VS Code extension), that functionality is lost. The IDE is not dinamically evaluating the preprocessor directives nor greying out code.
How can I recover that functionaliy? I can provide pictured if I wasn't enough clear with the explanation.
I miss a feature that I'm not sure if it's Platformio specific. In my project I configure how the code is compiled enabling and disabling #defines (preprocessor directives).
Previously when I commented out a #define VSCode automatically greyed out the code that was disabled by a preprocessor directive.
Now with this change to plain IDF+Arduino As A Component (using the VS Code extension), that functionality is lost. The IDE is not dinamically evaluating the preprocessor directives nor greying out code.
How can I recover that functionaliy? I can provide pictured if I wasn't enough clear with the explanation.