4

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?

3
  • What TextMate version?
    – Daniel Beck
    Apr 24, 2012 at 6:56
  • Version 1.5.10 (1631)
    – BetaRide
    Apr 24, 2012 at 6:57
  • You'd better indent with tabs instead.
    – o0'.
    Apr 27, 2012 at 12:46

1 Answer 1

7

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.

2
  • 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, 2012 at 7:12
  • @BetaRide See Daniel's answer, to which I added a screenshot.
    – slhck
    Apr 24, 2012 at 7:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .