2018-05-01

【VisualStudioCode】設定高亮度語法顯示 .tpl 檔

舊版 vscode 的畫面

功能表的 檔案
喜好設定
設定
→ 在畫面右半部  使用者設定 輸入下面內容

  1.  
  2. "files.associations":
  3. {
  4. "*.tpl": "html"
  5. }
  6.  

再重新啟動 VisualStudioCode 就行了。


新版 vscode 的畫面

功能表的 檔案
→ 喜好設定
→ 設定
→ 在 【搜尋設定】欄輸入 files.associations 
→ 點擊【新增項目】鈕
→ 【索引鍵】欄輸入 *.tpl
→ 【值】欄輸入 html