4

Is there a way I can have IAR Embedded Workbench grey out inactive blocks of code within preprocessor conditions?

E.g.

#ifdef TEST
    some code
#endif

So if macro TEST is not defined the "some code" part is somehow greyed out?

dccharacter
  • 421
  • 1
  • 4
  • 14

1 Answers1

1

This feature has been implemented at some point in the later versions of the IAR IDE for Arm.

The checkbox to enable/disable it can be found under Tools-IDE Options-Editor-[x] Show Inactive code.

I am using it since 9.10 as well as the official IAR extension for VScode.

sharpgeek
  • 481
  • 2
  • 14
  • ... yes it does exist - as of 9.20.4 it uses the same color as "C++ comments" (green in my case)... I would prefer "grey background" or having ability to select a unique color (i would pick grey). – Frederick Aug 24 '23 at 19:37