Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Tab width for proper code viewing pleasure

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> /dev/random
Author Message
caker



Joined: 15 Apr 2003
Posts: 2371
Location: Galloway, NJ

Posted: Sat Mar 24, 2007 12:39 am    Post subject: Tab width for proper code viewing pleasure  

Your preference for tab width for proper code viewing pleasure is...?

-Chris
Back to top  
zunzun



Joined: 18 Feb 2005
Posts: 167
Location: Birmingham, Alabama USA

Posted: Mon Mar 26, 2007 11:43 am    Post subject: Re: Tab width for proper code viewing pleasure  

caker wrote: Your preference for tab width for proper code viewing pleasure is...?

-Chris


For the Pythonistas, Guido's Guide is at:

http://www.python.org/dev/peps/pep-0008/

"Use 4 spaces per indentation level."
Back to top  
sweh



Joined: 13 Apr 2004
Posts: 223

Posted: Mon Mar 26, 2007 10:19 pm    Post subject:  

I don't tab; I "2 space".
Back to top  
smiffy



Joined: 23 Jan 2007
Posts: 66
Location: 80 miles from Adelaide, Australia

Posted: Tue Mar 27, 2007 2:05 am    Post subject:  

8 takes up too much screen real-estate, 2 is too small to see and all values that are not powers of 2 are out - so 4 ;-)
Back to top  
zunzun



Joined: 18 Feb 2005
Posts: 167
Location: Birmingham, Alabama USA

Posted: Tue Mar 27, 2007 8:13 am    Post subject:  

smiffy wrote: ...all values that are not powers of 2 are out

Since a 1 represents yes, a 0 represents no, and a 0.5 represents maybe... powers of 3?

James
Back to top  
NecroBones



Joined: 16 Mar 2004
Posts: 110
Location: Sterling, VA

Posted: Tue Mar 27, 2007 3:42 pm    Post subject:  

I had to vote 8 since that's what I use 99% of the time. If I'm dealing with some heavily-indented code (sometimes due to my own coding laziness), I'll re-define the tab to 4 spaces temporarily. I like 4-space indentation visually, but not enough to change my habits. :)
Back to top  
Bdragon



Joined: 30 Sep 2005
Posts: 13

Posted: Wed Mar 28, 2007 10:04 pm    Post subject: 80.  

I have my tabstops forced to 80 along with having visual spaces/tabs turned on. (So I can easily see when someone tries to sneak tabs into my code :P)

(Drupal coding standards say "use two spaces, no tabs.")
Back to top  
OverlordQ



Joined: 04 Jun 2004
Posts: 200

Posted: Sun Apr 08, 2007 5:06 am    Post subject:  

I hit the tab key, so whatever a tab happens to be :P
Back to top  
cz9qvh



Joined: 19 Jan 2008
Posts: 14

Posted: Thu Jan 24, 2008 2:06 pm    Post subject:  

i use 4, but like NecroBones i'm willing to redefine the tab size based on the code
Back to top  
TofuMatt



Joined: 21 Feb 2008
Posts: 6

Posted: Thu Feb 21, 2008 10:51 pm    Post subject:  

I loooove three-space tabs, but will settle for four. Two bugs me. Anything above four is really stupid to me, even when I'm on a 24" iMac :P
Back to top  
 
       Linode.com Forum Forum Index -> /dev/random
Page 1 of 1