Reputation: 103
I have some ASP files in a folder. I would like to view some of them using the default ASP language mode, others I prefer to view in HTML.
If I switch a file to use HTML, it doesn't remember that setting next time I open VS Code.
Is it possible to save this setting per file?
Thanks in advance.
Upvotes: 10
Views: 1626
Reputation: 11702
What you are looking for is the "files.associations"
setting. You can specify this setting for each file or also for complete directories:
"files.associations": {
"**/somefolder/*.asp": "html", // add complete folder
"**/myfileName.asp": "html" // add a specific file
}
Upvotes: 18