Every time I create a new file in Vs Code an untitled file comes and I can't change the extension of the file unless I save the file. Is there a way to change the name and extension of the file without having trouble saving it first? I have seen someone rename the file and the extension without having to save the file. This is why I wanted to know how to do it.
3 Answers
yes we can, after creating new file in VS code. click on bottom right pain text and select language which you want without saving.
1 Comment
AgroNaviS BanG
thank you so much for the help... it was bugging me for few days after I updated it.
You can choose the file format prior to saving it 
here you can see it's plain text but you can change it (Python,JSON and more) Also refer to this Question regarding the naming
Comments
Modify how ctrl+n works. Preferences: Open Keyboard Shortcuts (JSON)
{ "key": "ctrl+n", "command": "-workbench.action.files.newUntitledFile" }, { "key": "ctrl+n", "command": "explorer.newFile" } 