Automatic language detection As you write code in an untitled file, VS Code will automatically infer the language based on the file’s text. You can always select the language yourself too using the language mode item in the status bar.