Disabled code to greyed out

Hello,
Is it possible with Arduino IDE 2 to display disabled lines of code (ie: through #define/#ifdef) as greyed out lines?
Thank you

If the editor had to in effect carry out a compile every time you pressed a key, it might slow down a bit.

Remember the results of an #ifdef might depend on defines in other files that may or may not be #included

You are right, but Arduino IDE 2 seems to be based on vscode where highlight syntaxis to greyed out for #define works fine there.

Is it possible to enable it to give it a try?

I have a project with several configurations through #define switches and it is crazy to edit without greyed out highlight syntaxis.

It works with vscode + Arduino_extension, but I would prefer to use Arduino IDE 2.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.