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
  • Note that it is not the compiler which does this - it is the Editor (which is the Eclipse editor, in the Case of CooCox).

    Yes, it is very handy - and has been a common (one might go so far as to say, "standard"?) feature of "proper" Programmer's editors for many years now.

    Sadly, the uVision editor is pretty lame - and this is one of those handy features that it still lacks.

    But, as others have said, you are not compelled to use the uVision editor.

    Whether you feel that this is an unforgivable omission (considering the price of Keil tools relative to, say, CooCox) is entirely up to you ...

Reply
  • Note that it is not the compiler which does this - it is the Editor (which is the Eclipse editor, in the Case of CooCox).

    Yes, it is very handy - and has been a common (one might go so far as to say, "standard"?) feature of "proper" Programmer's editors for many years now.

    Sadly, the uVision editor is pretty lame - and this is one of those handy features that it still lacks.

    But, as others have said, you are not compelled to use the uVision editor.

    Whether you feel that this is an unforgivable omission (considering the price of Keil tools relative to, say, CooCox) is entirely up to you ...

Children