I want to set different tab size/soft tab for different language.
such as
tab size 4 for php with tab
tab size 2 for ruby with soft tab
Could I do this in sublime text?
while self.living? do
mistake = Mistake.new
self.learn_from!(mistake) unless mistake.fatal?
endfacelessuser wrote:Yes, I think I heard that code runs better if it is prettier.
Grant wrote:For some reason I think that this can be done using the same kind of settings file in your User directory; something like "PHP.sublime-settings". I haven't tried it yet, and there's a very good chance that I'm wrong.
while self.living? do
mistake = Mistake.new
self.learn_from!(mistake) unless mistake.fatal?
end{ "tabSize" : 2,
"translateTabsToSpaces" : true
}
First, make sure your sublime-settings file is in the same directory as the corresponding tmPreferences file.
Users browsing this forum: Google [Bot] and 12 guests