This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Preprocessor greyedout

At the moment I'm evaluating the Keil5 ide.
In Coocox the compiler will gray out the unused preprocessor code, is very handy.
Can't find this option in Keil uvision 5, how do you guys do that?
How can you read (and understand) the code if you don't know what's used or not.

Example: my.st.com/.../gray.PNG

Parents
  • "How can you read (and understand) the code if you don't know what's used or not."

    The same way people managed to do wonders in VI. We know what is used because we are the ones who decides what is used - not because the color coding in the editor happens to change.

    It's the same way people once managed to remember phone numbers and dial without pressing a name or an avatar in a smart phone. And the same way people manage to find bugs without a debugger. The brain adapts, based on the needs.

Reply
  • "How can you read (and understand) the code if you don't know what's used or not."

    The same way people managed to do wonders in VI. We know what is used because we are the ones who decides what is used - not because the color coding in the editor happens to change.

    It's the same way people once managed to remember phone numbers and dial without pressing a name or an avatar in a smart phone. And the same way people manage to find bugs without a debugger. The brain adapts, based on the needs.

Children