Home Download Buy Blog Forum Support

Per source-type indentation settings?

Per source-type indentation settings?

Postby d11wtq on Sun Jul 31, 2011 11:59 am

Hi,

I've been using Sublime Text 2 on OS X for the past couple of days and am very impressed, kudos.

I'm having one minor issue, however, where behaviour differs from TextMate. I have to work with both Ruby and PHP source files, in a single project. The PHP source files use tab indentation, while the Ruby source files use 2 spaces. I have to constantly change the indentation settings as I open new files. Is there a way to specify indentation settings either on a per-directory, or per-source-type basis?''

Looking forward to seeing how Sublime evolves on OS X. More Cocoa-like window chrome and panels would be a welcome change, but I think Sublime far exceeds other editors in terms of functionality :)

Chris
d11wtq
 
Posts: 6
Joined: Sun Jul 31, 2011 11:51 am

Re: Per source-type indentation settings?

Postby jps on Sun Jul 31, 2011 12:03 pm

You can use "Preferences/More/User Syntax Specific Settings" for this - it'll open up a settings file that will effect the current syntax only
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Per source-type indentation settings?

Postby d11wtq on Sun Jul 31, 2011 12:29 pm

Wow, that's awesome, thank you!
d11wtq
 
Posts: 6
Joined: Sun Jul 31, 2011 11:51 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 23 guests