Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In TextMate I'd like to adjust the number of spaces added for indentation for JavaScript, CSS and PHP files. I found the bundle editor where I think this should be done, but I don't understand waht do edit.

I'm using TextMate Version 1.5.10 (1631).

Can someone shed some light on this?

share|improve this question
What TextMate version? – Daniel Beck Apr 24 '12 at 6:56
Version 1.5.10 (1631) – BetaRide Apr 24 '12 at 6:57
You'd better indent with tabs instead. – o0'. Apr 27 '12 at 12:46
up vote 7 down vote accepted

It's not part of the language definitions. TextMate simply remembers the setting you last selected for documents of a given language setting. This setting is at the bottom of each window:

The preferences are stored in ~/Library/Preferences/com.macromates.textmate.plist, in the arrays OakTextViewScopedTabSize (tab size) and OakTextViewScopedSoftTabs (whether tabs are soft). Use Xcode 4 or Property List Editor (Xcode 3) to edit this file. Or just change the setting in TextMate.

share|improve this answer
How can I change the indentation settings in TextMate? I don't find anything to adjust the number of spaces for indentation. – BetaRide Apr 24 '12 at 7:12
@BetaRide See Daniel's answer, to which I added a screenshot. – slhck Apr 24 '12 at 7:16
Thank's. That was the missing link. – BetaRide Apr 24 '12 at 7:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.