Home Download Buy Blog Forum Support

Different tabs for different file types?

Different tabs for different file types?

Postby enrique-ramirez on Tue Jan 24, 2012 12:04 am

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? :)
enrique-ramirez
 
Posts: 4
Joined: Thu Jan 19, 2012 5:43 am

Re: Different tabs for different file types?

Postby enrique-ramirez on Wed Feb 01, 2012 6:48 pm

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! :D
enrique-ramirez
 
Posts: 4
Joined: Thu Jan 19, 2012 5:43 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 35 guests