How to Indent Code r7 (See the current copy)

Identing Your Code -- Don't Be That Guy

The Rules:

  1. Ident only at the beginning of the line
  2. Use a (real) tab or spaces to indent
    1. Preferably a tab, it has a deep history related to idention and in software it tends to mean "ident"
  3. Be consistent
    1. No space character shall follow a tab character
    2. If using spaces to indent, use the same number of spaces to represent an indention level
  4. No tab shall come after a non-tab character on a line
    1. This supercedes the rule about consitency -- formatting data, especially comments, not related to indention should be done with spaces

Questions and Answers: