วิธีแก้ปัญหาเมื่อ vscode/cursor ไม่ทำการ format ไฟล์ .templ ได้อย่างถูกต้อง
ให้ทำการเปิด settings.json ของ vscode/cursor แล้วเพิ่ม code ด้านล่างนี้เข้าไป
{
"editor.formatOnSave": true,
"[templ]": {
"editor.defaultFormatter": "a-h.templ"
},
{