Open up the file in Sublime Text with the filetype you want to setup the syntax-specific settings for.
Edit syntax specific settings with menu Preferences -> Settings - More -> Syntax Specific - User
{
"tab_size": 4
}
You can do the same with any other file type as well :)