Language-specific settings in Sublime Text
However, I always forget how to set it up in Sublime. So I’m writing it down to remember it now:
- Open a file containing the language you want to set per-language settings for.
- Go to though the menus: Sublime Text → Preferences → Settings - More → Syntax Specific - User.
- Enter the settings for the language. Indent spaces is
"tab_size": 2, for example.
While you can create the settings file in Sublime’s settings folder directly, I find it hard to guess what a language’s filename should be, so I find using the menus easier as it sorts out the filename for you.