舊版 vscode 的畫面
功能表的 檔案→ 喜好設定
→ 設定
→ 在畫面右半部 使用者設定 輸入下面內容
"files.associations":
{
"*.tpl": "html"
}
再重新啟動 VisualStudioCode 就行了。
新版 vscode 的畫面
功能表的 檔案
→ 喜好設定
→ 設定
→ 喜好設定
→ 設定
→ 在 【搜尋設定】欄輸入 files.associations
→ 點擊【新增項目】鈕
→ 【索引鍵】欄輸入 *.tpl
→ 【值】欄輸入 html