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
  • If you use defines with speaking names for magic numbers, it's nigh impossible to keep every line within the 80 characters margin, without making the code look really bad.

    So I compromise by keeping my comments within the 80 character margin and the code wherever that is sensibly possible.

    An advantage of staying in that margin is that you can reasonably open the .h and the .c file side by side.

    @m tas
    Your shouting is quite the eye sore. Please convey your opinion in a socially acceptable form.

    By the way, in my opinion your statement is quite ridiculous. I have seen what happens to space indented code when many people work on it. And it's fit to give a man nightmares.

Reply
  • If you use defines with speaking names for magic numbers, it's nigh impossible to keep every line within the 80 characters margin, without making the code look really bad.

    So I compromise by keeping my comments within the 80 character margin and the code wherever that is sensibly possible.

    An advantage of staying in that margin is that you can reasonably open the .h and the .c file side by side.

    @m tas
    Your shouting is quite the eye sore. Please convey your opinion in a socially acceptable form.

    By the way, in my opinion your statement is quite ridiculous. I have seen what happens to space indented code when many people work on it. And it's fit to give a man nightmares.

Children