[quote=“Turbocom”]
[quote=“spadgos”]I was about to answer and say that it wouldn’t be much work to write a plugin to do that, but then I thought, “if it’s so easy, why don’t I write it?” … Boom!
github.com/spadgos/sublime-DefaultFileType
By default it will make new files (ones created with Ctrl/Cmd + N) take the same syntax as the current file. If there is no open file, or you turn off that setting, then a default will be used (set to Java, just for you )
Let me know how it goes.
I’ll try to get this added to Package Control soon. In the meantime:
cd to/your/sublime/Packages
git clone https://github.com/spadgos/sublime-DefaultFileType.git DefaultFileType
[/quote]
Thanks for your help. I’m using Windows, could you give me a step by step on how to do it? I’m rather new.[/quote]
If you have git installed you’ll only have to run the commands in cmd.
cd "C:\Users\%username%\AppData\Roaming\Sublime Text 2\Packages"
git clone https://github.com/spadgos/sublime-DefaultFileType.git DefaultFileType
(if your package folder is in another location you’ll have to modify the path in the first command)
If you don’t have git installed, you can download the package at https://github.com/spadgos/sublime-DefaultFileType/downloads, and then unpack it and move it to you package directory.