Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can get it from here: https://code.visualstudio.com/
I have a
To permanently set the language syntax: open settings.json file
settings.json
*) format all txt files with javascript formatting
"files.associations": { "*.txt": "javascript" }
*) format all unsaved files (untitled-1 etc) to javascript:
"files.associations": { "untitled-*": "javascript" }