Sublime Text 2 Default File Type on new file

Viewed 11372

I was looking around and the questions and answers did not seem to match what I am looking for. Anytime I open a new file it defaults to a plan text file. I mostly work with HTML files so I was wondering if there is a setting that would be changed so that when I open a new file it will default to HTML? Hope this is possible.

Rob

3 Answers

It is possible with the ApplySyntax Plugin. Once it is installed (e.g. via PackageControl), you can set the ApplySyntax User Settings like that:

"new_file_syntax": "HTML",

Now if you open a new file, your default syntax will be HTML. Of course you can set every Syntax you have installed.

Related