Alex Rivera | Logout

Can I set tab with to 2 spaces in ruby and 4 spaces in javascript with sublime text

Asked 2012-03-14T23:57:26.217
19

Pretty self explanatory, I just want to set up sublime to use 2 space indents for everything other than javascript

Edit
Report

1 Answer

48

The accepted answer is unnecessarily complicated. Just open a Ruby file in Sublime Text 2, then:

Preferences -> Settings - More -> Syntax Specific - User

This will create a new file called Ruby.sublime-settings in the Packages/User directory and open it for you. If the file already exists it will just be opened for editing. Now you just need to type in your preferred settings and save.

answered 2013-06-06T15:04:17.460

Your Answer