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.
Asked
Active
Viewed 1,361 times
3 Answers
0
yes we can, after creating new file in VS code. click on bottom right pain text and select language which you want without saving.

Namrata Sanja
- 216
- 2
- 1
-
thank you so much for the help... it was bugging me for few days after I updated it. – AgroNaviS BanG May 05 '21 at 09:13
0
Modify how ctrl+n
works.
Preferences: Open Keyboard Shortcuts (JSON)
{
"key": "ctrl+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "ctrl+n",
"command": "explorer.newFile"
}

weiya ou
- 2,730
- 1
- 16
- 24