Tab width for proper code viewing pleasure

Linode Staff

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

-Chris

9 Replies

@caker:

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."

I don't tab; I "2 space".

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 ;-)

@smiffy:

…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

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. :)

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.")

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

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

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

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct