Text archives Help
- From: James Bigler <bigler@cs.utah.edu>
- To: manta@sci.utah.edu
- Subject: [MANTA] Code standard
- Date: Mon, 23 May 2005 20:52:13 -0600
I have a special request of everyone. If you plan on checking code into
the repository I have a couple of aesthetic requirements:
1. No tabs. They may look nice in your editor, but they generally make
the code look nasty for the rest of us. Use spaces for tabs. Most
modern editors have configurations for this. It will make the code look
consistent in each editor. If you use emacs add the following to you .emacs
;; Use spaces instead of tabs to format text
(setq-default indent-tabs-mode nil)
2. Tabs should be two spaces, not 3 or 4 or something else. This is
especially important if you make spaces out of your tabs. If you have
emacs add the following to your .emacs:
;; set tab distance to 2
(setq c-basic-offset 2)
It doesn't take long to configure your editor, so please help out.
Thanks so much for helping keep the code pretty.
James
- [MANTA] Code standard, James Bigler, 05/23/2005
Archive powered by MHonArc 2.6.16.