打开vscode: file --> preferences --> settings 进入settings页面 打开后输入 "files.associations": { "*.tpl": "html" } 保存就可以咯