[TxMt] Automagically figuring out tab size?

Allan Odgaard throw-away-1 at macromates.com
Mon Dec 5 20:31:18 UTC 2005

On 5/12/2005, at 21:22, Domenico Carbotta wrote:

>> I thought it was an extension based configuration
> guess what -- you're right :)
> open a Terminal window and type
>     defaults delete com.macromates.textmate OakTextViewScopedTabSize
> to reset them all.

Of course the way I expected people to adjust tab size was by using  
the pop-up in the status bar :)

By default TM has different settings for a few known scopes (Ruby: 2,  
Markdown: 4, Old-style Property List: 4, ...). If your preference is  
e.g. 6, you may need to set it for a few different types before it's  
6 for all file types -- it tries to be smart, so if you open a file  
for which you haven't set an explicit size, and TM doesn't ship with  
a default size for that file type, then it uses the setting of the  
“closest” file type (e.g. source.ruby.rails is closest to  
source.ruby), and if nothing is closest, it uses the size you most  
recently set explicitly.

So the times you need to “correct” the tab size should be down to a  
minimum, while still offering per-file type tab settings.

More information about the textmate mailing list