Sublime Forum

Different tabs for different file types?

#1

Hi,

I like tabs. Tabs as in spacing with tabs, not 4 spaces. I like this for my CSS, HTML, JS, PHP… but…

I’d like to have 2 spaces inserted wen I press “tab” instead of a tab for .rb files. Any ideas? :smile:

0 Likes

#2

For anyone that lands on this issue:

  1. Open a file with the type you want to edit specifically (i.e. test.html)

  2. Go to ‘Preferences >> File Settings - More >> Syntax Specific - User’. This will open a file for that specific file type (i.e. HTML.sublime-settings)

  3. Add your rules as with any other file. Save and you’re golden! :smiley:

0 Likes