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

Line limit to 80 chars

How to limit line limit to 80 charactres. Do keil has any setting for this which gives an indication of max length on top, or it has to be done manually.

Parents
  • It seems we have opposite bad experiences.

    I have seen 4 spaces turn into 3 and back to 4 and up to 5 with just an empty line in between. I've seen odd pieces of code with only 2 spaces ...

    It went so far that I wrote a script that reformats the entire code to something sensible.

    I will stick to whatever the convention is within a project, but if the decision is up to me, I prefer 8 character wide real tabs. You clearly see if you mess up and that you're nesting too many loops and conditions and would be better off reconsidering what you're doing.

Reply
  • It seems we have opposite bad experiences.

    I have seen 4 spaces turn into 3 and back to 4 and up to 5 with just an empty line in between. I've seen odd pieces of code with only 2 spaces ...

    It went so far that I wrote a script that reformats the entire code to something sensible.

    I will stick to whatever the convention is within a project, but if the decision is up to me, I prefer 8 character wide real tabs. You clearly see if you mess up and that you're nesting too many loops and conditions and would be better off reconsidering what you're doing.

Children