I use Sublime Text and want JavaScript files to use three spaces for indentaiton.
I set this in Packages/User/Preferences.sublime-settings:
{
"tab_size": 3,
"translate_tabs_to_spaces": true
}
but it has no affect and I need to manually change it for each new file.
When you have a JavaScript file open do the following:
This will allow you to set custom preferences for the current syntax. More info on indentation here: http://www.sublimetext.com/docs/2/indentation.html