When saving a new file, under the "File name: " Field in which you enter the file’s name and Extension there’s a drop-down menu titled as "Save as type: ". I guess after manually including the File-Extension in the "File name: " Field this “Save as type:” drop-down menu can be ignored, or at least ignored so long as “All Files ([asterisk].[asterisk])” is selected for it… am I right to think that?
Windows 11. Is it necessary to choose a "File Type" when saving new files?
I would just say whatever works for you in practice.
If looks like if your input name has an extension then the file type has no effect. Otherwise, the first extension of the file type will be used.
@jfcherng There’s something odd going on with it as if I don’t enter a File-Extension manually at all and just choose a certain “File-Type” from the drop-down menu (line “Plain Text”) then it only ever saves as a ‘type-less’ file, without any extension at all.
OK. I can reproduce that.
On Windows (other platform untested), if the view has no syntax set, the extension of selected file type won’t be appended when saving.
But technically I don’t care about this issue personally since I always either assign a syntax before saving or explicitly add an file extension when saving.
My suggestion would be file an issue on the official issue tracker with detailed step-by-step reproducer. Sometimes screenshot or video recording is more helpful. https://github.com/sublimehq/sublime_text/issues
I’m presuming by the “view” you mean the "File name: " Field that I mentioned in the OP; and by “syntax” you mean a File-Extension. So it’s a bug and I’ll report that then when I get a second.
In the meantime, I’ll just keep manually including a File-Extension when I enter the file’s title, and leave the drop-down menu as “All Files ([asterisk].[asterisk])”.
No. view
is a ST (Sublime Text) term. You can treat it as “file” for easier understanding.
No. You can treat it as “programming language” for easier understanding.
Ok. So I found the “Syntax” menu in the “View” tab. So new files by default seem to be set to “Plain Text” Syntax—which means technically, I guess, they still do at least have a Syntax, yet the problem of this OP applies to them, which means that files can still have a Syntax yet the problem applies to them. Furthermore, the problem will also apply to a file with “Java” Syntax, so I don’t think it’s true to say that the problem will happen to a file if a Syntax is not selected.
Also, can I ask whether you are a developer for Sublime Text?
No. Just a person who was willing to start the discussion.
As I said in Windows 11. Is it necessary to choose a "File Type" when saving new files?, the best hope to have a bug solved is to file an issue on the issue tracker.