Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set sublime text to auto detect a file type after setting it once?

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.

like image 843
Trenton Avatar asked Dec 13 '14 01:12

Trenton


People also ask

How do I enable auto suggestions in Sublime Text?

In the Sublime menu go to Preferences > Package Settings > All Autocomplete > Settings – User.

How do I change the default syntax in Sublime Text?

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...

How do I add IntelliSense to Sublime Text?

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.


1 Answers

Screen shot

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.

like image 74
jwpfox Avatar answered Sep 28 '22 14:09

jwpfox