Skip to content

Instantly share code, notes, and snippets.

@adamjohnson
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save adamjohnson/ba52c160f643cba4c353 to your computer and use it in GitHub Desktop.

Select an option

Save adamjohnson/ba52c160f643cba4c353 to your computer and use it in GitHub Desktop.
DefaultFileType for Sublime Text - How to get it up and running

How to get the DefaultFileType pacakge for Sublime Text working

  1. Install the package via Package Control (it works with ST3, don't worry).
  2. Create a new file called default_file_type.sublime-settings and paste the following:
{
  "default_new_file_syntax" : "Packages/HTML/HTML.tmLanguage",
   "use_current_file_syntax" : false
}
  1. Change the default language, if necessary (they're usually named pretty logically).
  2. Save it to your Packages/User folder. This can be found by going to "Browse Packages" via the menu bar.
  3. Restart Sublime for good measure.

Note: Play around with setting use_current_file_syntax to true. I have set it to false here to avoid any potential installation confusion ("I hit ⌘ + N and it's still "Plain Text". What gives?!?). Setting it to true is a very handy feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment