[TxMt] Re: Mixed mode indentation

Jacob Rus jrus at hcs.harvard.edu
Sun Dec 17 23:28:27 UTC 2006


Trevor Harmon wrote:
> convention [3], but then I noticed that it apparently recommends mixed 
> mode!
> 
> "Four spaces should be used as the unit of indentation. The exact 
> construction of the indentation (spaces vs. tabs) is unspecified. Tabs 
> must be set exactly every 8 spaces (not 4)."
> 
> Am I reading that right? Does Java's coding standard recommend mixed 
> mode indentation? What are TextMate users to do in this situation?

This sounds to me like you should just use spaces for indentation, and 
leave out tabs.  The point of the recommendation sounds like a way to 
make sure that if some use tabs, but everyone sets tabs to expand to 8 
characters, people will still have the same 'view' of the source.  But 
sticking to spaces should solve things while remaining within these 
guidelines.




More information about the textmate mailing list