且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio Code 保存语言模式(覆盖默认值)

更新时间:2022-12-04 18:06:49

您正在寻找的是 "files.associations" 设置.您可以为每个文件或完整目录指定此设置:

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 
}