2 Spaces or 1 Tab, what's the standard for indentation in the Rails Community?

Posted by viatropos on Stack Overflow See other posts from Stack Overflow or by viatropos
Published on 2010-04-20T21:32:26Z Indexed on 2010/04/20 21:43 UTC
Read the original article Hit count: 122

Filed under:
|
|
|
|

I've noticed that most of the HTML/XML/HAML that gets generated from plugins uses 2 spaces instead of 1 tab. I use textmate and have tabs set to 4 spaces for HAML/HTML/XML and 2 spaces for Javascript/Ruby, but I only have to press the tab key once to get nice indentation. Pressing the space bar twice and delete twice seems like too much work :p.

Do you manually type two spaces, or is some middle layer converting tabs to two spaces? Or do just a few of you use tabs?

© Stack Overflow or respective owner

Related posts about indentation

Related posts about ruby-on-rails