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.
Now, highlight your code and right-click. Select Format Document. Once you click on Format Document, a dialog box will tell you to configure your code formatter. This is to set your default code formatter.
To disable the Restricted mode status bar entry: Right click in the status bar. Uncheck the workspace trust entry.
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
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With