for instance I have a .zsh file that I would like to always open in sublime as a "Shell Script (bash)" file type. Currently it defaults back to a text file format even when I change and reopen it.
In the Sublime menu go to Preferences > Package Settings > All Autocomplete > Settings – User.
In the current version of Sublime Text 2 (Build: 2139), you can set the syntax for all files of a certain file extension using an option in the menu bar. Open a file with the extension you want to set a default for and navigate through the following menus: View -> Syntax -> Open all with current extension as...
Go to Preferences -> Settings - User and add the following (remove the last comma if it's the last entry in the array): "auto_complete": true, "auto_complete_commit_on_tab": true, "auto_complete_selector": "source, meta. tag", // you can make this "source - comment, meta.
Look in the bottom right of the window.
Click the file type name. Let's assume it is 'Shell Script (Bash)'.
Notice that the first option is 'Open all with current extension as...'
Follow the obvious steps from there and you should be all set.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With