Visual Studio Code: Set default language for new file
Description When creating a new file in VSCode by default you get a ‘txt’ type file. If you often work with specific file types, you can change this to your prefered file type.
The setting is controlled by
1 "files.defaultLanguage": "" or GUI
Examples For example, to always have a new file of the type ‘MarkDown’ use:
1 "files.defaultLanguage": "markdown" To make it a bit more dynamic and always use the same type of file than you are currently working on, use: