Re: What coding standard are you using for C?

On Nov 5, 6:02 pm, ChrisQ <m...@xxxxxxxxxxx> wrote:
The first thing is to find a good 132 column editor with rectangular cut
and paste and with tabs set to 4 or so spaces. I know that sounds a bit
oblique, but you need to be able to keep a view of the big picture at
all times and weedy ide or even 80 col editors can make this hard work.
How often are the comments and code all over the place in indent terms,
because some team members use tab stops and others use spaces ?.

They are all over the place because people insist on redefining the
TAB character, supported by misguided editors. TAB stops are every 8
characters. Indent by 4 or 2 spaces, or whatever you want, but TABs
are equivalent to 8 spaces.

There's more, but have probably said enough already to get well flamed,
so will stop now :-)...



Relevant Pages

  • Re: Great SWT Program
    ... text in the user's language of choice is a feature of GUIs and not ... literal tab characters in code. ... characters into spaces" feature on. ...
  • Re: Maybe Safari 4 actually is for Windows
    ... were doing it by clicking a button on the left of the tab area. ... perhaps because direct manipulation feels much more ... for Google search results pages is just that there just isn't anything ...
  • Re: Great SWT Program
    ... Vim -- car is fixed, ... and/or press tab again to get a list of choices. ... to type one or more additional characters and press tab again. ...
  • Re: indenting
    ... original programmer's tab size in order to get the code to line up ... As for the key-presses, most editors ... > automate, although the mentioned editor attempts to do that, too: ...
  • Re: parse two field file
    ... two fields seperated by a tab. ... (The first "%s" will skip any leading white space, ... Plus unbounded %or %s risks buffer overflow and resulting UB. ... to find the first tab <snip> ...