Skip to content

Instantly share code, notes, and snippets.

@tuannh99
Last active October 24, 2019 03:33
Show Gist options
  • Save tuannh99/3b4c02dd64cf7788fe04583b403a7c89 to your computer and use it in GitHub Desktop.
Save tuannh99/3b4c02dd64cf7788fe04583b403a7c89 to your computer and use it in GitHub Desktop.
[OSX] Make Sublime Text 3 default open specified file extension in a specified syntax

$ cat "/Users/YOURUSER/Library/Application Support/Sublime Text 3/Packages/User/YAML.sublime-settings"

{
	"extensions":
	[
		"yml.j2"
	]
}

^ That will make Sublime Text 3 default to set syntax as YAML for every .yml.j2 file. The same can be done with other extensions as well as other language/syntax.

Have fun hacking.

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